Skip to content

Instantly share code, notes, and snippets.

Avatar

Pankaj Bhambhani pankajb64

View GitHub Profile
@pankajb64
pankajb64 / BBBLinearFactorial.py
Created Jul 26, 2020
Difference in KL divergence computation for Bayesian Fully Connected Layer
View BBBLinearFactorial.py
class BBBLinearFactorial(nn.Module):
"""
Describes a Linear fully connected Bayesian layer with
a distribution over each of the weights and biases
in the layer.
"""
def __init__(self, ...):
super(BBBLinearFactorial, self).__init__()
...
@pankajb64
pankajb64 / RPS.sol
Last active May 30, 2018
Ethereum DAPP for playing Rock, Paper, Scissors. Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
View RPS.sol
pragma solidity ^0.4.23;
contract RPS {
address player1;
address player2;
bytes32 commitment;
string play1;
string play2;
You can’t perform that action at this time.