提交 cc64f1c0 编写于 作者: L liuqi

Fix add repeated input bug in op_test_util.

上级 f16cf77e
...@@ -63,7 +63,6 @@ class OpsTestNet { ...@@ -63,7 +63,6 @@ class OpsTestNet {
ws_.CreateTensor(name, cpu_allocator(), DataTypeToEnum<T>::v()); ws_.CreateTensor(name, cpu_allocator(), DataTypeToEnum<T>::v());
input->Resize(shape); input->Resize(shape);
T *input_data = input->mutable_data<T>(); T *input_data = input->mutable_data<T>();
MACE_CHECK(input->size() == data.size());
std::fill(input_data, input_data + input->size(), data); std::fill(input_data, input_data + input->size(), data);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册