Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d2c7a37

Browse files
committed
Merge pull request tensorflow#39 from orionr/fix-nonzero-typeerror
Fix issue in neural_gpu.py where TypeError is raised.
2 parents 6406a15 + ba15af6 commit d2c7a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neural_gpu/neural_gpu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
def conv_linear(args, kw, kh, nin, nout, do_bias, bias_start, prefix):
2525
"""Convolutional linear map."""
26-
assert args
26+
assert args is not None
2727
if not isinstance(args, (list, tuple)):
2828
args = [args]
2929
with tf.variable_scope(prefix):

0 commit comments

Comments
 (0)