Skip to content

Instantly share code, notes, and snippets.

View tremblerz's full-sized avatar
💭
I may be slow to respond.

Abhishek Singh tremblerz

💭
I may be slow to respond.
View GitHub Profile
@sumanmichael
sumanmichael / conv_2d_with_same_padding.py
Created June 3, 2021 13:35
PyTorch Conv2d equivalent of Tensorflow tf.nn.conv2d(....,padding='SAME')
import tensorflow as tf
import torch
from torch import nn
import numpy as np
from functools import reduce
from operator import __add__
class Conv2dSamePadding(nn.Conv2d):
@Brainiarc7
Brainiarc7 / build-tensorflow-from-source.md
Last active July 29, 2023 21:28
Build Tensorflow from source, for better performance on Ubuntu.

Building Tensorflow from source on Ubuntu 16.04LTS for maximum performance:

TensorFlow is now distributed under an Apache v2 open source license on GitHub.

On Ubuntu 16.04LTS+:

Step 1. Install NVIDIA CUDA:

To use TensorFlow with NVIDIA GPUs, the first step is to install the CUDA Toolkit as shown: