- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 72 for function_type (0.34 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc
var_handle_op.getResource().replaceAllUsesWith( block.getArgument(it.first->getSecond())); } var_handle_op.erase(); } if (!var_handle_shared_names->empty()) function.setType(FunctionType::get(function.getContext(), func_arg_types, func_type.getResults())); return success(); } // Records the current live value for a resource variable and whether a read or
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go
if len(ret) == 1 { if bt, ok := ret[0].(*BuiltinType); ok && bt.Name == "void" { ret = nil } } return ret } // functionType parses: // // <function-type> ::= F [Y] <bare-function-type> [<ref-qualifier>] E func (st *state) functionType() AST { st.checkChar('F') if len(st.str) > 0 && st.str[0] == 'Y' { // Function has C linkage. We don't print this. st.advance(1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 94.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc
for (const auto& arg : func_op.getArguments()) { arg_locs.push_back(arg.getLoc()); } } // Creates a new main function. auto func_type = FunctionType::get(context, arg_types, result_types); auto main_func = builder.create<func::FuncOp>( module_op.getLoc(), kImportModelDefaultGraphFuncName, func_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
(*remaining_resource_data_types)[arg.getArgNumber() - skipped_args] = it->second.data_type; } } } func_op.eraseArguments(indices_to_erase); func_op.setType( FunctionType::get(func_op.getContext(), new_types, llvm::to_vector<4>(return_op->getOperandTypes()))); } // Lifts reads/writes of resource arguments from func_op and changes its
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 55.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 54.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc
auto guard = OpBuilder::InsertionGuard(builder); builder.setInsertionPointAfter(current_func); TypeRange arg_types{ValueRange{arguments}}; TypeRange result_types{ValueRange{results}}; auto func_type = FunctionType::get(context, arg_types, result_types); SmallVector<Location> arg_locs; for (Value arg : arguments) { arg_locs.push_back(arg.getLoc()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc
builder.setInsertionPoint(&*module_op.begin()); auto stablehlo_func_op = builder.create<func::FuncOp>( module_op.getLoc(), CreateStablehloFunctionName(stablehlo_func_id), FunctionType::get(ctx, arg_types, result_types)); stablehlo_func_op.setVisibility(SymbolTable::Visibility::Private); stablehlo_func_op->setAttr(TF::kFromXlaCallModuleAttrName, builder.getUnitAttr());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
(*stack_var_to_size_var)[func.getArgument(i)] = size_arg; } } if (handle_new_size_vars) { handle_new_size_vars(func.getArguments().drop_front(original_arg_count)); } func.setType( FunctionType::get(func.getContext(), new_input_types, func.front().getTerminator()->getOperandTypes())); } // Contains cached information for decomposed callee functions for (stateful)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc
} builder_.create<func::ReturnOp>(func_.getLoc(), ret_operands); auto arg_types = body.getArgumentTypes(); auto result_types = body.getTerminator()->getOperandTypes(); func_.setType(FunctionType::get(func_.getContext(), arg_types, result_types)); *f = new MlirFunction(std::move(context_), std::move(module_), func_); return absl::OkStatus(); } extern "C" {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc
void UpdateFuncType(func::FuncOp func) { auto arg_types = func.front().getArgumentTypes(); auto result_types = func.front().getTerminator()->getOperandTypes(); func.setType(FunctionType::get(func.getContext(), arg_types, result_types)); } void HandleFuncOp(Operation* op) { auto func = llvm::cast<func::FuncOp>(op); UpdateFuncType(func); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 29.3K bytes - Viewed (0)