- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 56 for getFunctionType (0.29 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
} // The FuncOp type can contain types that the op's operand and result // types do not contain. if (auto func = dyn_cast<func::FuncOp>(op)) { if (!converter_.isSignatureLegal(func.getFunctionType())) return false; } return converter_.isLegal(op); }); } private: TFQuantTypeConverter &converter_; }; class TFQuantTypePattern : public ConversionPattern {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/decompose.cc
return WalkResult::interrupt(); } tensorflow::IncreaseOpExpansionExecuteCounterByOne( op->getName().getStringRef().str()); auto compose_func_type = compose_func.getFunctionType(); builder.setInsertionPoint(op); TFRTensorType unconstrainted_tensor_type = builder.getType<TFRTensorType>(); // Create the new operands. This is mapping the operands from the target
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/post_quantize.cc
terminator->setOperand(i, dequantized_result); returned_op->erase(); } else { output_types.push_back(returned_value.getType()); } } auto new_func_type = builder.getFunctionType(input_types, output_types); func.setType(new_func_type); } enum RemoveVolatileOpsType { // Remove all volatile quant-dequant ops. kPreserveNone,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
} if (!body_fn) { return emitOpError("body refers to an undefined function : ") << getBody(); } auto cond_fn_type = cond_fn.getFunctionType(); auto body_fn_type = body_fn.getFunctionType(); // Verify that the cond function has exactly one result. if (cond_fn_type.getNumResults() != 1) return emitOpError("requires cond function to have exactly one result");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
region.push_back(new mlir::Block()); Location loc = region.getLoc(); auto inputs = func.getFunctionType().getInputs(); region.addArguments(inputs, mlir::SmallVector<Location>(inputs.size(), loc)); op_builder.setInsertionPointToStart(®ion.front()); auto call_op = op_builder.create<mlir::func::CallOp>( loc, func.getFunctionType().getResults(), func.getSymName(), region.getArguments());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc
mlir::cast<FlatSymbolRefAttr>(sym_ref).getValue()); if (!init_func_op) return session_initializer.emitOpError() << "the initializer function does not exist"; if (!init_func_op.getFunctionType().getResults().empty()) return session_initializer.emitOpError() << "the initializer function should have no output"; auto exported_names = GetExportedNames(init_func_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc
// TODO(aminim) figure out the location story here module_ = ModuleOp::create(builder_.getUnknownLoc()); func_ = func::FuncOp::create( builder_.getUnknownLoc(), name, builder_.getFunctionType(std::nullopt, std::nullopt)); module_->push_back(func_); builder_ = OpBuilder::atBlockBegin(func_.addEntryBlock()); } void Release() override { delete this; }
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/quantization/stablehlo/passes/quantization_patterns.cc
} SmallVector<Type> output_types; for (const Value output : xla_call_module_op.getOutput()) { output_types.push_back(output.getType()); } entry_func_op.setFunctionType( rewriter.getFunctionType(arg_types, output_types)); // Replace argument types and locs. Block& entry = entry_func_op->getRegion(0).front(); for (auto [arg, arg_type, arg_loc] :
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 06:04:36 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
auto* node = graph_->FindNodeId(ret->id()); TF_ASSIGN_OR_RETURN(auto type, InferInputType(*node, /*idx=*/0, builder)); ret_types.push_back(type); } return builder.getFunctionType(arg_types, ret_types); } // Stateful helper class to import a TensorFlow model expressed in GraphDef into // an MLIR Module. // // The nodes defined in the graph are converted to a function called
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/tensorflow/transforms/sparsecore/embedding_sequencing.cc
builder.setInsertionPointToEnd(&module.getBodyRegion().back()); func::FuncOp func_op = builder.create<func::FuncOp>( module.getLoc(), name, builder.getFunctionType(input_types, output_types)); func_op.setPrivate(); return func_op; } TF::StatefulPartitionedCallOp EncapsulateOpsInFunc( OpBuilder& builder, const llvm::SetVector<Operation*>& ops,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.4K bytes - Viewed (0)