Commit 23c36186 authored by zsc's avatar zsc Committed by Yuxin Wu

Fix for python3, as the iterator returned by the map will be empty after logging. (#316)

parent 8e167804
......@@ -31,7 +31,7 @@ if __name__ == '__main__':
for inp in args.input:
inp = inp.split('=')
name = get_op_tensor_name(inp[0].strip())[1]
shape = map(int, inp[1].strip().split(','))
shape = list(map(int, inp[1].strip().split(',')))
tensor = G.get_tensor_by_name(name)
logger.info("Feeding shape ({}) to tensor {}".format(','.join(map(str, shape)), name))
feed[tensor] = np.random.rand(*shape)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment