Skip to content

Commit

Permalink
fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmusbergpalm committed Nov 26, 2013
1 parent 4ae73b1 commit 1e4e950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DBN/rbmtrain.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function rbm = rbmtrain(rbm, x, opts)
assert(isfloat(x), 'x must be a float');
assert(all(x>=0) && all(x<=1), 'all data in x must be in [0:1]');
assert(all(x(:)>=0) && all(x(:)<=1), 'all data in x must be in [0:1]');
m = size(x, 1);
numbatches = m / opts.batchsize;

Expand Down

0 comments on commit 1e4e950

Please sign in to comment.