- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for InitOpName (0.27 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) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
fn.emitWarning() << "invalid entry function specification"; return; } for (const auto& it : llvm::enumerate(fn.getArguments())) { name_mapper_.InitOpName(it.value(), input_names[it.index()].trim()); } *has_input_attr = true; } if (auto str = mlir::dyn_cast_or_null<mlir::StringAttr>(dict_attr.get("outputs"))) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (2)