ソースを参照

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):