647e3d6fafe38887e9db55d6f489b64ea07e3af1,examples/vision/mnist/classification_bnn.py,,train,#,222
Before Change
monitor_loss.add(i, loss.d.copy())
monitor_err.add(i, e)
monitor_time.add(i)
nn.save_parameters(os.path.join(args.model_save_path,
"params_%06d.h5" % args.max_iter))
if __name__ == "__main__":
train()
After Change
parameter_file = os.path.join(
args.model_save_path, "params_%06d.h5" % args.max_iter)
structure_file = os.path.join(
args.model_save_path, "params_%06d.nntxt" % args.max_iter)
nnp_file = os.path.join(
args.model_save_path, "{}_{:06}.nnp".format(args.net, args.max_iter))
runtime_contents = {
"networks": [
{"name": "Validation",
"batch_size": args.batch_size,
"variable": vpred}],
"executors": [
{"name": "Runtime",
"network": "Validation",
"variables": ["x", "y"]}]}
nn.save_parameters(parameter_file)
save.save(structure_file, runtime_contents)
save.save(nnp_file, runtime_contents)
if __name__ == "__main__":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 14
Instances
Project Name: sony/nnabla
Commit Name: 647e3d6fafe38887e9db55d6f489b64ea07e3af1
Time: 2017-08-18
Author: Naoki.Ide@sony.com
File Name: examples/vision/mnist/classification_bnn.py
Class Name:
Method Name: train
Project Name: sony/nnabla
Commit Name: 647e3d6fafe38887e9db55d6f489b64ea07e3af1
Time: 2017-08-18
Author: Naoki.Ide@sony.com
File Name: examples/vision/mnist/dcgan.py
Class Name:
Method Name: train
Project Name: sony/nnabla
Commit Name: 647e3d6fafe38887e9db55d6f489b64ea07e3af1
Time: 2017-08-18
Author: Naoki.Ide@sony.com
File Name: examples/vision/mnist/siamese.py
Class Name:
Method Name: train