Commit 0365e50a by lixiaoquan Committed by Tianqi Chen

[TEST] Comptiable with python3.5 (#3675)

parent 11da1ca3
......@@ -922,9 +922,9 @@ def _test_unstack(ip_shape, axis, dtype):
tf.reset_default_graph()
in_data = tf.placeholder(dtype, ip_shape, name="in_data")
tf.unstack(in_data, axis=axis)
unstack = tf.unstack(in_data, axis=axis)
compare_tf_with_tvm([np_data], ['in_data:0'], [f'unstack:{n}' for n in range(ip_shape[axis])])
compare_tf_with_tvm([np_data], ['in_data:0'], [n.name for n in unstack])
tf.reset_default_graph()
in_data = tf.placeholder(dtype, ip_shape, name="in_data")
......
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