!9293 use tobytes instead

From: @caozhou_huawei
Reviewed-by: @kingxian,@zh_qh
Signed-off-by: @kingxian
pull/9293/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 819a510b75

@ -130,7 +130,7 @@ def _exec_save(ckpt_file_name, data_list):
param_tensor = param_value.tensor
param_tensor.dims.extend(value[0])
param_tensor.tensor_type = value[1]
param_tensor.tensor_content = param_slice.tostring()
param_tensor.tensor_content = param_slice.tobytes()
f.write(checkpoint_list.SerializeToString())

Loading…
Cancel
Save