Skip to content

Commit

Permalink
change uniform to he_uniform at example
Browse files Browse the repository at this point in the history
  • Loading branch information
joddiy committed Jun 19, 2020
1 parent 7d7d02c commit 1559b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/rbm/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def train(data_file, use_gpu, num_epoch=10, batch_size=100):
tvalidposhidprob = tvalidposhidprob + thbias
tvalidposhidprob = tensor.sigmoid(tvalidposhidprob)
tvalidposhidrandom = tensor.Tensor(tvalidposhidprob.shape, dev)
initializer.uniform(tvalidposhidrandom, 0.0, 1.0)
initializer.he_uniform(tvalidposhidrandom, 0.0, 1.0)
tvalidposhidsample = tensor.gt(tvalidposhidprob, tvalidposhidrandom)

tvalidnegdata = tensor.mult(tvalidposhidsample, tweight.T())
Expand Down

0 comments on commit 1559b27

Please sign in to comment.