- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 101 for getAttrOfType (0.18 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc
SmallVector<StringRef, 2> ret; auto exported_names = op->getAttrOfType<ArrayAttr>(kTfSavedModelExportedNamesAttr); if (exported_names) { for (auto name : exported_names) { ret.push_back(mlir::cast<StringAttr>(name).getValue()); } } return ret; } bool IsExported(Operation *op) { auto exported_names = op->getAttrOfType<ArrayAttr>(kTfSavedModelExportedNamesAttr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/python/saved_model_to_tfl_flatbuffer.cc
mlir::OwningOpRef<mlir::ModuleOp>* module) { mlir::func::FuncOp entry_function = nullptr; for (auto func : module->get().getOps<mlir::func::FuncOp>()) { if (auto tf_attrs = func->getAttrOfType<mlir::DictionaryAttr>("tf.entry_function")) { // TODO(b/184697652): There could be multiple entry functions. Let's // handle such cases if there are any needs for that. if (entry_function != nullptr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun May 12 12:39:37 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc
const mlir::Dialect* tf_dialect_; const SymbolTable& symbol_table_; }; std::string FindFunctionName(const GraphExportConfig& configs, FuncOp func) { if (auto original_func_name = func->getAttrOfType<mlir::StringAttr>("tf._original_func_name"); configs.export_original_tf_func_name && original_func_name) { return original_func_name.str(); } return func.getName().str(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 35.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc
const mlir::Dialect* tf_dialect_; const SymbolTable& symbol_table_; }; std::string FindFunctionName(const GraphExportConfig& configs, FuncOp func) { if (auto original_func_name = func->getAttrOfType<mlir::StringAttr>("tf._original_func_name"); configs.export_original_tf_func_name && original_func_name) { return original_func_name.str(); } return func.getName().str(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 23:04:51 UTC 2024 - 35.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc
// We need to handle them separately. auto tf_implements_attr_str = func->getAttrOfType<StringAttr>(kTFImplements); if (tf_implements_attr_str) { ConvertTFImplements(func, tf_implements_attr_str); continue; } auto tf_implements_attr = func->getAttrOfType<FuncAttr>(kTFImplements); if (tf_implements_attr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h
inline FlatSymbolRefAttr GetFuncAttr(TF::PartitionedCallOp call_op) { return mlir::dyn_cast<FlatSymbolRefAttr>(call_op.getFAttr()); } inline FlatSymbolRefAttr GetFuncAttr(TF::XlaCallModuleOp call_op) { return call_op->getAttrOfType<FlatSymbolRefAttr>( TF::kStablehloEntryFunctionAttrName); } // Returns the entry function name for the given tf.XlaCallModule op. Returns // empty string if such attribute does not exist.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc
Location loc = graph_func.getLoc(); FunctionType ftype = graph_func.getFunctionType(); func::FuncOp func = rewriter.create<func::FuncOp>( graph_func.getLoc(), graph_func->getAttrOfType<StringAttr>(SymbolTable::getSymbolAttrName()) .getValue(), ftype); func->setAttrs(graph_func->getAttrs()); llvm::SmallVector<Type> arg_types;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc
m.walk([&](tf_device::ClusterFuncOp cluster_func) { auto replicate = cluster_func->getParentOfType<tf_device::ReplicateOp>(); if (!replicate) return; auto mirrored_variable_indices_attr = replicate->getAttrOfType<ArrayAttr>(kMirroredVariableIndicesAttr); llvm::SmallDenseSet<int64_t, 8> mirrored_replicate_args; if (mirrored_variable_indices_attr) { for (const auto& mirrored_index : mirrored_variable_indices_attr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc
} TF::PartitionedCallOp call_op = dyn_cast_or_null<TF::PartitionedCallOp>(op); return call_op && call_op->hasAttrOfType<StringAttr>(kQuantTraitAttrName) && call_op->getAttrOfType<StringAttr>(kQuantTraitAttrName).getValue() == llvm::StringRef( QuantTraitValues[QuantizationTrait::FullyQuantizable]); } // Returns the composite function name.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc
module.walk([&](Operation* op) { if (isa<TF::XlaSendToHostOp>(op)) { StringRef old_key = op->getAttrOfType<StringAttr>("key").getValue(); auto new_key = StringAttr::get(ctx, old_key.str() + "_dtoh_0"); op->setAttr("key", new_key); } else if (isa<TF::XlaRecvFromHostOp>(op)) { StringRef old_key = op->getAttrOfType<StringAttr>("key").getValue(); auto new_key = StringAttr::get(ctx, old_key.str() + "_htod_0");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.8K bytes - Viewed (0)