Extract arguments to its own file and pass arguments to ios apps (#15413)
authorFei Sun <feisun@fb.com>
Thu, 20 Dec 2018 21:24:01 +0000 (13:24 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 20 Dec 2018 21:31:48 +0000 (13:31 -0800)
commit2a64a78e7b24835511c86f7ca0e6a444fc982aa5
tree85cfeb21262c8d258434b2e9fec2359e61f4e758
parentf0f9277c3cda0b022af0dfaf21d043641bea80d2
Extract arguments to its own file and pass arguments to ios apps (#15413)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15413

In order to pass arguments to the ios app, need to extarct the arguments
to its own file. Also, in the ios app, do not use the benchmark.json, which
parses the arguments.

This is an incompatible change, needs to add hot fix to the tests.

Reviewed By: llyfacebook

Differential Revision: D13523240

fbshipit-source-id: b559cc7f52d8f50ee206a7ff8d7b59292d855197
binaries/benchmark_args.h [new file with mode: 0644]
binaries/caffe2_benchmark.cc