pytorch
6dc8d72f - Change from int64_t to jlong for mac build (#29861)

Commit
5 years ago
Change from int64_t to jlong for mac build (#29861) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/29861 Follow https://github.com/pytorch/pytorch/issues/6570 to run ./run_host_tests.sh for Mac Build, we saw error below: ```error: cannot initialize a parameter of type 'const facebook::jni::JPrimitiveArray<_jlongArray *>::T *' (aka 'const long *') with an rvalue of type 'std::__1::vector<long long, std::__1::allocator<long long> >::value_type *' (aka 'long long *') jTensorShape->setRegion(0, tensorShapeVec.size(), tensorShapeVec.data());``` ghstack-source-id: 93961091 Test Plan: Run ./run_host_tests.sh and verify build succeed. Reviewed By: dreiss Differential Revision: D18519087 fbshipit-source-id: 869be12c82e6e0f64c878911dc12459defebf40b
Author
Parents
Loading