提交 efc56c88 编写于 作者: Y yejianwu

format code

上级 81865af1
......@@ -165,6 +165,7 @@ def del_tensor_data(net_def, runtime, gpu_data_type):
elif t.data_type == mace_pb2.DT_UINT8:
del t.int32_data[:]
def update_tensor_data_type(net_def, runtime, gpu_data_type):
for t in net_def.tensors:
if t.data_type == mace_pb2.DT_FLOAT and runtime == 'gpu' \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册