I did as you said, and a few things happened.
I got the following when I tried to update all submodules:
(pytorch-1.0) Alexs-Macbook-2:pytorch askates$ git fetch --all
Fetching origin
(pytorch-1.0) Alexs-Macbook-2:pytorch askates$ git reset --hard origin/master
HEAD is now at 19addc7 Support nonzero onnx export
(pytorch-1.0) Alexs-Macbook-2:pytorch askates$ git submodule update --init --recursive
error: no such remote ref 9884f286a236a3b4e3218e4afa17781752e048bd
Fetched in submodule path 'third_party/onnx-tensorrt', but it did not contain 9884f286a236a3b4e3218e4afa17781752e048bd. Direct fetching of that commit failed.

Trying to build it after gave me this result.
With this error:
ld: warning: object file (/usr/local/cuda/lib/libcudart_static.a(libcudart_static.a.o)) was built for newer OSX version (10.12) than being linked (10.9)
/Users/askates/Documents/GitRepos/pytorch/third_party/QNNPACK/src/operator-run.c:701:7: warning: implicit declaration of
      function 'pthreadpool_compute_3d_tiled' is invalid in C99 [-Wimplicit-function-declaration]
      pthreadpool_compute_3d_tiled(
      ^
/Users/askates/Documents/GitRepos/pytorch/third_party/QNNPACK/src/operator-run.c:703:10: error: use of undeclared identifier
      'pthreadpool_function_3d_tiled_t'
        (pthreadpool_function_3d_tiled_t) compute_sum_rows,
         ^
/Users/askates/Documents/GitRepos/pytorch/third_party/QNNPACK/src/operator-run.c:725:7: warning: implicit declaration of
      function 'pthreadpool_compute_4d_tiled' is invalid in C99 [-Wimplicit-function-declaration]
      pthreadpool_compute_4d_tiled(
      ^
/Users/askates/Documents/GitRepos/pytorch/third_party/QNNPACK/src/operator-run.c:727:12: error: use of undeclared identifier
      'pthreadpool_function_4d_tiled_t'
          (pthreadpool_function_4d_tiled_t) compute_q8gemm_xzp,
           ^
/Users/askates/Documents/GitRepos/pytorch/third_party/QNNPACK/src/operator-run.c:762:12: error: use of undeclared identifier
      'pthreadpool_function_4d_tiled_t'
          (pthreadpool_function_4d_tiled_t) compute_q8gemm,
           ^
/Users/askates/Documents/GitRepos/pytorch/third_party/QNNPACK/src/operator-run.c:802:12: error: use of undeclared identifier
      'pthreadpool_function_4d_tiled_t'
          (pthreadpool_function_4d_tiled_t) compute_q8conv,
           ^
2 warnings and 4 errors generated.
make[2]: *** [confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/operator-run.c.o] Error 1
make[1]: *** [confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
Traceback (most recent call last):
  File "setup.py", line 734, in <module>
    build_deps()
  File "setup.py", line 281, in build_deps
    build_dir='build')
  File "/Users/askates/Documents/GitRepos/pytorch/tools/build_pytorch_libs.py", line 251, in build_caffe2
    check_call(['make', '-j', str(max_jobs), 'install'], cwd=build_dir, env=my_env)
  File "/Users/askates/anaconda3/envs/pytorch-1.0/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-j', '8', 'install']' returned non-zero exit status 2.

Edit:
I tried again, except setting USE_CUDA=FALSE.
It got a bit further this time, but still failed.
[ 45%] Linking CXX static library ../../../lib/libprotoc.a
[ 45%] Built target libprotoc
make: *** [all] Error 2
Traceback (most recent call last):
  File "setup.py", line 734, in <module>
    build_deps()
  File "setup.py", line 281, in build_deps
    build_dir='build')
  File "/Users/askates/Documents/GitRepos/pytorch/tools/build_pytorch_libs.py", line 251, in build_caffe2
    check_call(['make', '-j', str(max_jobs), 'install'], cwd=build_dir, env=my_env)
  File "/Users/askates/anaconda3/envs/pytorch-1.0/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-j', '8', 'install']' returned non-zero exit status 2.