mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
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 |
||
|---|---|---|
| .. | ||
| host | ||
| src | ||
| build.gradle | ||
| CMakeLists.txt | ||
| generate_test_asset.cpp | ||
| generate_test_torchscripts.py | ||
| gradle.properties | ||
| test_asset.jit | ||