Skip to content

Commit 1e4e950

Browse files
fix assertion
1 parent 4ae73b1 commit 1e4e950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DBN/rbmtrain.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function rbm = rbmtrain(rbm, x, opts)
22
assert(isfloat(x), 'x must be a float');
3-
assert(all(x>=0) && all(x<=1), 'all data in x must be in [0:1]');
3+
assert(all(x(:)>=0) && all(x(:)<=1), 'all data in x must be in [0:1]');
44
m = size(x, 1);
55
numbatches = m / opts.batchsize;
66

0 commit comments

Comments
 (0)