- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 30 for function_type (0.37 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_read_for_write.cc
func::FuncOp func = cluster_func.getFuncOp(); Block& block = func.front(); for (Value read_operand : read_operands) block.addArgument(read_operand.getType(), loc); func.setType(FunctionType::get(&getContext(), block.getArgumentTypes(), func.getResultTypes())); cluster_func.erase(); } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 16:54:40 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc
arg.setType(resultType); } llvm::SmallVector<Type, 8> arg_types; for (auto arg : func.getArguments()) arg_types.push_back(arg.getType()); func.setType( FunctionType::get(func.getContext(), arg_types, func.front().getTerminator()->getOperandTypes())); return WalkResult::advance(); });
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/transforms/initialize_variables_in_session_init.cc
} func::FuncOp CreateSessionInitFunc(ModuleOp module) { constexpr char kSessionInitFuncName[] = "SessionInitializerFunction"; mlir::OpBuilder builder(module.getBodyRegion()); auto func_type = FunctionType::get(module.getContext(), /*inputs=*/{}, /*results=*/{}); auto func = builder.create<func::FuncOp>(module->getLoc(), kSessionInitFuncName, func_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc
auto tensor_string_type = RankedTensorType::get({}, TF::StringType::get(builder.getContext())); main_func.getArguments().front().setType(tensor_string_type); main_func.setType( FunctionType::get(builder.getContext(), {tensor_string_type}, main_func.getFunctionType().getResults())); // Name of the main function for the eventual executable needs to be set.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 30 02:12:49 UTC 2022 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc
module.getContext())); arg.setType(new_arg_type); } // Update the function type. func.setType(mlir::FunctionType::get(module.getContext(), func.getBody().getArgumentTypes(), func.getFunctionType().getResults())); } return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc
op.erase(); } } if (lifted_op_and_arg_idx.empty()) return success(); // Update the function signature as well as its uses. target_func.setType(FunctionType::get(target_func.getContext(), block.getArgumentTypes(), func_type.getResults())); IRMapping mapping; OpBuilder builder(module_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 8.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc
PatternRewriter& rewriter, Block* insertion_point) { rewriter.setInsertionPointToStart(insertion_point); auto ftype = FunctionType::get(rewriter.getContext(), {type}, {type}); auto name = rewriter.getStringAttr("gelu_decomp"); func::FuncOp new_func = rewriter.create<func::FuncOp>( insertion_point->front().getLoc(), name, ftype);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 9.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc
builder.setInsertionPointToEnd(&module_op.getBodyRegion().front()); auto filename_input_type = RankedTensorType::get( /*shape=*/{}, /*elementType=*/builder.getType<TF::StringType>()); FunctionType func_type = builder.getFunctionType( /*inputs=*/{filename_input_type}, /*results=*/{}); auto save_func = builder.create<func::FuncOp>( NameLoc::get(builder.getStringAttr(kTfQuantSaveFuncName)),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 9.5K bytes - Viewed (0)