- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 69 for getFunctionType (0.6 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
// Now use the filtered original operands, which will be replaced by // AddLoadsStoresOutsideControlFlowOp(). auto new_while = builder.create<TF::WhileOp>( while_op.getLoc(), body.getFunctionType().getResults(), FilterRange<Value, OperandRange>(while_op.getOperands(), resource_arg_uses), while_op->getAttrs()); // Prepare for AddLoadsStoresOutsideControlFlowOp().
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/lite/utils/lstm_utils.cc
void ConvertLSTMCellSimpleToFusedLSTM::UpdateFuncSignature() { // https://github.com/tensorflow/community/pull/113 SmallVector<int64_t, 2> output_shape{1, tensorflow::kTFDynamicSize}; auto input_types = fused_func_op_.getFunctionType().getInputs(); auto output_type = tensorflow::GetTypeFromTFTensorShape( output_shape, mlir::cast<RankedTensorType>(input_.getType()).getElementType());
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/quantization/tensorflow/passes/unfreeze_constants.cc
OpBuilder builder(module_op.getContext()); builder.setInsertionPointAfter(session_init_op); const Location loc = builder.getUnknownLoc(); const auto func_type = builder.getFunctionType(/*inputs=*/{}, /*results=*/{}); auto init_func = builder.create<func::FuncOp>( loc, /*sym_name=*/"init_func_restore_op", func_type); builder.createBlock(&init_func.getBody(), /*insertPt=*/init_func.begin(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 16 15:04:53 UTC 2023 - 14K bytes - Viewed (0) -
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)