- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for getFuncAttr (0.14 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc
has_resources = true; } } if (!in_order) { // Functions do not get reused in practice, so skip the check for if the // callee has been updated. StringAttr callee_sym = cluster_func_op.getFuncAttr().getAttr(); MoveResourceArgsToEnd(symtab.lookup<func::FuncOp>(callee_sym)); } builder.setInsertionPoint(cluster_func_op); auto xla_launch_op = builder.create<TF::XlaLaunchOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h
return nullptr; } // Returns the function attribute for the given call op which is lifted for // quantization. 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); }
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/quantization/tensorflow/passes/add_dump_tensor_op.cc
} Value result = op->getResult(0); for (auto user : result.getUsers()) { if (dyn_cast_or_null<TF::DumpTensorOp>(user)) return failure(); } const FlatSymbolRefAttr f_attr = GetFuncAttr(op); if (!f_attr.getValue().starts_with(kCompositeFuncPrefix)) return failure(); return success(); } void rewrite(LiftedOpT op, PatternRewriter &rewriter) const override {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 22:55:22 UTC 2024 - 13K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc
} } } cluster_func_op->setAttr(TF::kDynamicArgIndexAttr, builder.getI32ArrayAttr(dynamic_shape_arg_index)); FlatSymbolRefAttr func_attr = cluster_func_op.getFuncAttr(); func::FuncOp func = cluster_func_op->getParentOfType<ModuleOp>().lookupSymbol<func::FuncOp>( func_attr.getValue()); // Update the marked argument with dynamic shapes.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td
} // returns the function that this operation will launch. func::FuncOp getFuncOp() { return SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(*this, getFuncAttr()); } CallInterfaceCallable getCallableForCallee() { return getFuncAttr(); } void setCalleeFromCallable(::mlir::CallInterfaceCallable callee); }]; } def TfDevice_RemoteRunOp : TfDevice_Op<"remote_run",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 23 23:53:20 UTC 2024 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/mark_input_output_aliases.cc
if (failed(BuildAliasingInfo(cluster_func, resource_alias_info_map)) || resource_alias_info_map.empty()) { return; } FlatSymbolRefAttr func_attr = cluster_func.getFuncAttr(); func::FuncOp device_func = module.lookupSymbol<func::FuncOp>(func_attr.getValue()); AddAliasingAttributeToDeviceFunc(device_func, resource_alias_info_map); }); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 04:14:26 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc
ASSERT_THAT(main_fn, NotNull()); auto xla_call_module_op = FindOperationOfType<TF::XlaCallModuleOp>(main_fn); ASSERT_THAT(xla_call_module_op, NotNull()); FlatSymbolRefAttr xla_call_op_attr = GetFuncAttr(xla_call_module_op); EXPECT_EQ(xla_call_op_attr.getValue(), "composite_fn_1"); } TEST_F(AttrsAndConstraintsTest, PartitionedCallGetFuncAttr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 17:10:32 UTC 2024 - 22.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc
operand_and_idx.value()); compile_op_operands.emplace_back(shape_op.getResult()); } FlatSymbolRefAttr func_attr = cluster_func.getFuncAttr(); func::FuncOp func = cluster_func->getParentOfType<ModuleOp>().lookupSymbol<func::FuncOp>( func_attr.getValue()); std::string txt_module; if (failed(EncapsulateFuncAndSerialize(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 29.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc
//===----------------------------------------------------------------------===// LogicalResult ClusterFuncOp::verifySymbolUses( mlir::SymbolTableCollection& symbolTable) { StringAttr func_attr = getFuncAttr().getRootReference(); func::FuncOp func = symbolTable.lookupNearestSymbolFrom<func::FuncOp>(*this, func_attr); if (!func) { return emitError("'func' attribute refers to an undefined function: ")
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.4K bytes - Viewed (0)