@ptrblck ,
Thank you!
code:
fp.write('module.weight.data == {:.9f}\n'.format(module.weight.data))

module is the layer(sub-class of nn.Module) of network.

Error:
Exception has occurred: TypeError       (note: full exception trace is shown but execution is paused at: hook_save_data_student)
unsupported format string passed to Tensor.__format__