Skip to content

Instantly share code, notes, and snippets.

View pankajb64's full-sized avatar

Pankaj Bhambhani pankajb64

View GitHub Profile
@pankajb64
pankajb64 / BBBLinearFactorial.py
Created July 26, 2020 22:02
Difference in KL divergence computation for Bayesian Fully Connected Layer
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 16:21
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=
pragma solidity ^0.4.23;
contract RPS {
address player1;
address player2;
bytes32 commitment;
string play1;
string play2;