geek-ai/irgan

关于Question-Answer代码问题

bbgasj opened this issue · 0 comments

我使用TF1.2.1,一些api的问题已经修改;但是在运行时遇到如下问题:
1、在CPU下运行baseline.py和irgan.py都会会报如下错误:

  
 InvalidArgumentError (see above for traceback): indices[0,11] = 3408 is not in [0, 3231)
[[Node: output_2/embedding_lookup_1 = Gather[Tindices=DT_INT32, Tparams=DT_FLOAT, _class=["loc:@embedding_1/embedding_W"], validate_indices=true, _device="/job:localhost/replica:0/task:0/cpu:0"](embedding_1/embedding_W, _arg_input_x_2_1_0_1)]]
   

2、在GPU(P40)下运行baseline.py报如下错误,感觉内存不够,缩小batch_size为50后可运行:

  
2018-04-17 19:35:50.616583: F tensorflow/core/framework/tensor_shape.cc:241] Check failed: size >= 0 (-6838710080 vs. 0)
   

3、在GPU(P40)下运行irgan.py仍然报如上错误,改小batch_size也不行,请问实验环境的配置要求多高?

谢谢。
@wabyking @LantaoYu @pangolulu