- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GetNumInputs (0.37 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
// input and the outputs are all using this type and predicate is tensor<i1> // type). if (mlir::isa<FunctionType>(types.front())) { FunctionType type = mlir::cast<FunctionType>(types.front()); if (type.getNumInputs() < 2) return parser.emitError(parser.getNameLoc()) << " expects a single data type and a predicate"; result.types.assign(type.getResults().begin(), type.getResults().end());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/tftext_utils.cc
builder.create<func::ReturnOp>(func.getLoc(), op.getResults()); return success(); } LogicalResult VerifySgnnProjection(func::FuncOp func, FuncAttr attr) { if (func.getFunctionType().getNumInputs() != 2 || func.getFunctionType().getNumResults() != 1) { return func.emitError() << "Mismatched number of inputs and outputs."; } auto values_type = GetInputType(func, 0);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc
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); Type expected = fn_type.getInput(i); if (val.getType() != expected) { val =
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/tf2xla/api/v1/compile_mlir_util.cc
module.lookupSymbol<mlir::func::FuncOp>("main"); TF_RET_CHECK(main_func != nullptr) << "No main function found"; mlir::FunctionType func_type = main_func.getFunctionType(); int num_args = func_type.getNumInputs(); xla_input_shapes->reserve(num_args); std::vector<xla::Shape> individual_arg_shapes; individual_arg_shapes.reserve(num_args); for (int i = 0; i < num_args; ++i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 45.3K bytes - Viewed (0)