- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 66 for FunctionType (0.25 sec)
-
tensorflow/compiler/mlir/lite/utils/lstm_utils.cc
auto output_type = tensorflow::GetTypeFromTFTensorShape( output_shape, mlir::cast<RankedTensorType>(input_.getType()).getElementType()); fused_func_op_.setType(mlir::FunctionType::get(fused_func_op_.getContext(), input_types, output_type)); } LogicalResult ConvertLSTMCellSimpleToFusedLSTM::RewriteFunc() { LogicalResult result = Initialize();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 36.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc
// that is compatible for tensor cast. static Operation* CallFn(Location loc, const std::function<Value(int)>& get_arg, func::FuncOp fn, OpBuilder* builder) { FunctionType fn_type = fn.getFunctionType(); llvm::SmallVector<Value, 4> operands; int num_operands = fn_type.getNumInputs(); operands.reserve(num_operands); for (int i = 0; i < num_operands; ++i) { Value val = get_arg(i);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 13 11:42:59 UTC 2023 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
// unranked tensors and could be ranked tensors in cases where result type // depends on an op with static output shape like tf.Const. absl::StatusOr<mlir::FunctionType> InferLibFunctionType( const FunctionBody& fbody); // Extracts arg and ret nodes from FunctionBody. void GetArgsAndRetsFromFunctionBody( const FunctionBody& fbody,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
Type branch_args_type[] = {input_handle.getType(), input_shape.getType(), size_diff.getType(), size.getType()}; Type branch_result_type[] = {result_type}; auto func_type = FunctionType::get(rewriter.getContext(), branch_args_type, branch_result_type); // Create functions in a higher scope before restoring the insertion point.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0) -
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)