mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/26995 Fix current setup, exclude fbjni - we can not use independently pytorch_android:package, for example for testing `gradle pytorch_android:cAT` But for publishing it works as pytorch_android has dep on fbjni that will be also published For other cases - we have 2 fbjni.so - one from native build (CMakeLists.txt does add_subdirectory(fbjni_dir)), and from dependency ':fbjni' We need both of them as ':fbjni' also contains java classes As a fix: keep excluding for publishing tasks (bintrayUpload, uploadArchives), but else - pickFirst (as we have 2 sources of fbjni.so) # Testing gradle cAT works, fbjni.so included gradle bintrayUpload (dryRun==true) - no fbjni.so Test Plan: Imported from OSS Differential Revision: D17637775 Pulled By: IvanKobzarev fbshipit-source-id: edda56ba555678272249fe7018c1f3a8e179947c