瀏覽代碼

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

Fix issue in neural_gpu.py where TypeError is raised.
Lukasz Kaiser 9 年之前
父節點
當前提交
d2c7a37b99
共有 1 個文件被更改,包括 1 次插入1 次删除
  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):