Skip to content

Commit d10afb1

Browse files
andylytensorflower-gardener
authored andcommitted
Switch ResourceHandle to use StringRef when storing container, name, and device strings (NFC).
These are never created and instead are referencing attributes from an op. PiperOrigin-RevId: 345028070 Change-Id: Iea40d9ac930214c328746e59283b8ba90b249a2e
1 parent 2de460a commit d10afb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tensorflow/compiler/mlir/tensorflow/ir/tf_op_interfaces.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ struct ResourceHandle {
8282
// Make ResourceHandle hashable.
8383
friend ::llvm::hash_code hash_value(const ResourceHandle& resource_handle);
8484

85-
std::string container;
86-
std::string name;
87-
std::string device;
85+
StringRef container;
86+
StringRef name;
87+
StringRef device;
8888
Operation* op = nullptr;
8989
};
9090

0 commit comments

Comments
 (0)