pytorch/android/pytorch_android
Alex Beloi a38e43e936 [perf][1/5] Replace IValue::toString()->string() with IValue::toStringRef() (#85437)
Summary: `IValue::toString()` creates a `new c10::intrusive_ptr` (like `std::shared_ptr`) and `->string()` immediately accesses it, creating an atomic reference increment/decrement. We can skip both of these operations by calling `IValue::toStringRef()`.

Test Plan: CI

Reviewed By: jaybean-dev

Differential Revision: D39605242

Pull Request resolved: https://github.com/pytorch/pytorch/pull/85437
Approved by: https://github.com/jfix71
2022-09-23 23:36:57 +00:00
..
host improve android instrumentation test and update README 2022-02-22 08:05:33 +00:00
src [perf][1/5] Replace IValue::toString()->string() with IValue::toStringRef() (#85437) 2022-09-23 23:36:57 +00:00
build.gradle improve android instrumentation test and update README 2022-02-22 08:05:33 +00:00
CMakeLists.txt Make language std configurable. (#75519) 2022-07-13 14:21:27 +00: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 "add model test for Android" 2022-03-29 22:08:22 +00: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