892011b0b264d026d2fdb439580d82de393b5270,example/convert_resnet/convert_resnet.py,,main,#,119
Before Change
args = parser.parse_args()
if args.model == "MLP":
link = MLP(args.unit, 10)
dummy_input = chainer.Variable(np.random.rand(1, 784).astype(np.float32))
elif args.model == "CNN2":
link = CNN2(args.unit, 10)
dummy_input = chainer.Variable(np.random.rand(1, 1, 28, 28).astype(np.float32))
chainer.serializers.load_npz(args.model_path, link)
dummy_output = link(dummy_input)
After Change
raise NotImplementedError()
os.makedirs(OUTPUT_DIR, exist_ok=True)
with open(path.join(OUTPUT_DIR, "mnist_out.json".format()), "w") as f:
json.dump(dummy_output.data.flatten().tolist(), f)
with open(path.join(OUTPUT_DIR, "graph_{}.json".format(args.backend)), "w") as f:
json.dump(descriptor, f, indent=2)
if args.backend == "webgpu":
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: mil-tokyo/webdnn
Commit Name: 892011b0b264d026d2fdb439580d82de393b5270
Time: 2017-04-21
Author: hidaka@mi.t.u-tokyo.ac.jp
File Name: example/convert_resnet/convert_resnet.py
Class Name:
Method Name: main
Project Name: matplotlib/matplotlib
Commit Name: 655b588bd9dff86993b4f5a24c44c81f2465b022
Time: 2019-03-08
Author: jklymak@gmail.com
File Name: examples/images_contours_and_fields/watermark_image.py
Class Name:
Method Name:
Project Name: mil-tokyo/webdnn
Commit Name: 892011b0b264d026d2fdb439580d82de393b5270
Time: 2017-04-21
Author: hidaka@mi.t.u-tokyo.ac.jp
File Name: example/convert_resnet/convert_resnet.py
Class Name:
Method Name: main
Project Name: matplotlib/matplotlib
Commit Name: 754cfba75452535c201f9ac13aed091e6932cd84
Time: 2019-03-07
Author: anntzer.lee@gmail.com
File Name: examples/images_contours_and_fields/watermark_image.py
Class Name:
Method Name:
Project Name: chainer/chainerrl
Commit Name: 41b6f646ce3011c67fb8d7982676181fc464c38a
Time: 2018-03-14
Author: muupan@gmail.com
File Name: tests/agents_tests/test_trpo.py
Class Name: TestHessianVectorProduct
Method Name: test_first_order