Skip to content

Instantly share code, notes, and snippets.

View sumanmichael's full-sized avatar

Suman Michael sumanmichael

View GitHub Profile
@montanaflynn
montanaflynn / concurrency.go
Last active October 26, 2023 13:35
A simple example of bounded concurrency and wait groups in Golang
package main
import (
"fmt"
"sync"
"time"
)
func main() {
@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):