Explorar o código

Merge pull request #39 from orionr/fix-nonzero-typeerror

Fix issue in neural_gpu.py where TypeError is raised.
Lukasz Kaiser %!s(int64=9) %!d(string=hai) anos
pai
achega
d2c7a37b99
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      neural_gpu/neural_gpu.py

+ 1 - 1
neural_gpu/neural_gpu.py

@@ -23,7 +23,7 @@ import data_utils
 
 def conv_linear(args, kw, kh, nin, nout, do_bias, bias_start, prefix):
   """Convolutional linear map."""
-  assert args
+  assert args is not None
   if not isinstance(args, (list, tuple)):
     args = [args]
   with tf.variable_scope(prefix):