- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for InitOpName (0.1 sec)
-
tensorflow/compiler/mlir/op_or_arg_name_mapper.h
// GetUniqueName could return the same names for different operations or // values. // Note: Its up to the caller to decide the behavior when assigning two // operations or values to the same name. int InitOpName(OpOrVal op_or_val, llvm::StringRef name); virtual ~OpOrArgNameMapper(); protected: // Returns true if the name is unique. A derived class can override it if the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 22:54:55 UTC 2023 - 3.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/op_or_arg_name_mapper.cc
if (!name.empty()) return name; // Update the value in the map with unique name. name = StringRefToView(GetUniqueName(GetName(op_or_val))); return name; } int OpOrArgNameMapper::InitOpName(OpOrVal op_or_val, llvm::StringRef name) { auto it = name_to_count_.try_emplace(name, 0); auto inserted = op_or_val_to_name_.try_emplace( op_or_val, StringRefToView(it.first->first())); (void)inserted;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.7K bytes - Viewed (0)