Skip to content

Instantly share code, notes, and snippets.

View abi98213's full-sized avatar
🏠
Working from home

proto abi98213

🏠
Working from home
View GitHub Profile
@t-ae
t-ae / minibatch_discrimination_pytorch.py
Created August 8, 2017 13:48
Minibatch discrimination module in PyTorch
import torch
import torch.nn as nn
import torch.nn.init as init
class MinibatchDiscrimination(nn.Module):
def __init__(self, in_features, out_features, kernel_dims, mean=False):
super().__init__()
self.in_features = in_features
self.out_features = out_features
self.kernel_dims = kernel_dims
@0001vrn
0001vrn / countingSort.cpp
Created August 16, 2016 08:17
C++ program to implement Counting Sort
#include <iostream>
using namespace std;
void countingSort(int arr[],int n,int RANGE){
int count[RANGE]={0};
int i;
int out[n];
for(i=0;i<n;i++)