- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,512 for q_builder (0.22 sec)
-
tensorflow/compiler/mlir/python/mlir_wrapper/builders.cc
&mlir::OpBuilder::setInsertionPoint)) .def("saveInsertionPoint", &mlir::OpBuilder::saveInsertionPoint) .def("restoreInsertionPoint", &mlir::OpBuilder::restoreInsertionPoint) .def( "create", [](mlir::OpBuilder& opb, mlir::OperationState& state) { return opb.create(state); }, py::return_value_policy::reference) .def("getContext", &mlir::OpBuilder::getContext,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 28 08:44:55 UTC 2022 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc
OpBuilder builder); mlir::Type input_type; mlir::Type output_type; }; LogicalResult ModifyIONodesPass::SetupInputOutputTypesIfNull( OpBuilder builder) { if (input_type && output_type) return success(); auto convert_str_to_type = [&builder](absl::string_view str) -> Type { if (str == "int8") { return builder.getIntegerType(8); } else if (str == "uint8") {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.td
let extraClassDeclaration = [{ OpBuilder getThenBodyBuilder(OpBuilder::Listener *listener = nullptr) { Block* body = getBody(0); return getResults().empty() ? OpBuilder::atBlockTerminator(body, listener) : OpBuilder::atBlockEnd(body, listener); } OpBuilder getElseBodyBuilder(OpBuilder::Listener *listener = nullptr) { Block* body = getBody(1);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 186K bytes - Viewed (0) -
tensorflow/c/kernels/ops/merge_summary.cc
TF_Status* status = TF_NewStatus(); TF_OpDefinitionBuilder* op_builder = TF_NewOpDefinitionBuilder("MergeSummary"); TF_OpDefinitionBuilderAddInput(op_builder, "inputs: N * string"); TF_OpDefinitionBuilderAddOutput(op_builder, "summary: string"); TF_OpDefinitionBuilderAddAttr(op_builder, "N: int >= 1"); TF_OpDefinitionBuilderSetShapeInferenceFunction( op_builder, &merge_summary_shape_inference_fn);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 18 21:04:53 UTC 2023 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc
.def("create", [](mlir::OpBuilder& opb, mlir::Location loc, mlir::Value x, mlir::Value y) -> mlir::Operation* { return opb.create<mlir::TF::AddV2Op>(loc, x, y).getOperation(); }); py::class_<mlir::TF::AnyOp>(m, "Tf_AnyOp") .def("create", [](mlir::OpBuilder& opb, mlir::Location loc, mlir::Value input,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 30 02:12:49 UTC 2022 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td
resultType = $_builder.getNoneType(); } return build($_builder, $_state, resultType, x, y); }]>]; } // Mixin class defining a builder for comparison ops supporting broadcast // behavior. The result type has bool element type. class WithBroadcastableCmpOpBuilder { list<OpBuilder> builders = [ OpBuilder<(ins "Value":$x, "Value":$y), [{ Type resultType;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 30.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td
"CreateCastToInt32($0, $_loc, $_builder)">; def CreateInt32ConstOrCast : NativeCodeCall< "CreateInt32ConstOrCast($0, $_loc, $_builder)">; // Creates an int32 constant op from an integer attribute $0. def CreateInt32ConstOpFromIntAttr
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 28.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo_patterns.td
"CreateCastToInt32($0, $_loc, $_builder)">; // TODO: b/304003568 - Add TF_TransposeOp folding logic to tflite. def LegalizeTranspose : Pat<(MHLO_TransposeOp $arg, $perm), (TFL_TransposeOp $arg, (CreateTFLCastToInt32Op (TFL_ConstOp $perm)))>; def ConvertDotGeneralOp : NativeCodeCall<"ConvertDotGeneralOp($_builder, "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 18 18:07:41 UTC 2023 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc
// op. The `ConstOp` will be created at `builder`'s current insertion point. TF::ConstOp CreateTensorNamesConst(const ArrayRef<std::string> tensor_names, OpBuilder& builder) { const auto loc = NameLoc::get(builder.getStringAttr("tensor_names")); return Create1DStringConst(tensor_names, loc, builder); } // Creates a 1D string array constant for "shape_and_slices" input of
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/c/kernels/ops/bitcast.cc
} void RegisterBitcastOp() { TF_Status* status = TF_NewStatus(); TF_OpDefinitionBuilder* op_builder = TF_NewOpDefinitionBuilder("Bitcast"); TF_OpDefinitionBuilderAddInput(op_builder, "input: T"); TF_OpDefinitionBuilderAddOutput(op_builder, "output: type"); TF_OpDefinitionBuilderAddAttr( op_builder, "T: {bfloat16, half, float, double, int64, int32, uint8, uint16, "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 07:51:50 UTC 2024 - 5.1K bytes - Viewed (0)