pytorch/android/pytorch_android
Zhengxu Chen c92ff47afd Use == operator to test type equivalance in pytorch_jni_common.cpp (#71508)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71508

"==" is the more universal way to test type equalities, and also ::get() doesn't incur any refcount overhead now, so we can swtich to == instead of relying on type kinds.
ghstack-source-id: 147353057

Test Plan:
CI
buck test xplat/caffe2/android:pytorch_jni_common_test

Differential Revision: D33672433

fbshipit-source-id: 5973fd40de48b8017b5c3ebaa55bcf5b4b391aa3
(cherry picked from commit db84a4b566)
2022-01-20 23:46:51 +00:00
..
host [android][fbjni] Update fbjni to 0.2.2 (#68400) 2021-11-17 16:54:22 -08:00
src Use == operator to test type equivalance in pytorch_jni_common.cpp (#71508) 2022-01-20 23:46:51 +00:00
build.gradle [Pytorch Edge] Enable kineto profiler on mobile via EdgeKinetoProfiler (#62419) 2021-08-13 21:40:19 -07:00
CMakeLists.txt [Pytorch] Build lite interpreter as default for Android 2021-05-17 14:12:48 -07:00
generate_test_asset.cpp [NOOP][clangformat][codemod] Enable CLANGFORMAT for some folders in caffe2/* (#67746) 2021-11-03 12:23:14 -07:00
generate_test_torchscripts.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
gradle.properties [android] Lite interpreter naming for android nightly publishing (#68651) 2021-11-19 10:56:13 -08:00
test_asset.jit Clean up some type annotations in android (#49944) 2021-01-07 15:42:55 -08:00