TF session.run:TypeError:int()参数必须是字符串,类似字节的对象或数字,而不是“ map”

时间:2019-02-22 19:07:27

标签: tensorflow

我找不到与此追溯有关的任何内容。不知道什么会导致这种情况。这是来自创建网络内部还是之前?

line 840, in train
        loss, global_step, param_norm, grad_norm = self.run_train_iter(session, batch, summary_writer)
qa_model.py", line 435, in run_train_iter
        [_, summaries, loss, global_step, param_norm, gradient_norm] = session.run(output_feed, input_feed)
      File "C:\Users\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 929, in run
        run_metadata_ptr)
      File "C:\Users\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1121, in _run
        np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
      File "C:\Users\Anaconda3\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
        return array(a, dtype, copy=False, order=order)
    TypeError: int() argument must be a string, a bytes-like object or a number, not 'map'

0 个答案:

没有答案