- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 61 for if_builder (0.22 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td
def TrueBoolAttr : AttrConstraint<CPred<"$_self.cast<BoolAttr>().getValue()">>; def CastValueToI64: NativeCodeCall< "CastValueToI64($0.getLoc(), $1, &$_builder)">; def CastValueToElementType: NativeCodeCall< "$_builder.create<ConvertOp>($0.getLoc(), $1, " "getElementTypeOrSelf($2.getType()))">; // Here, $0 is an ElementsAttr with exactly one element of type integer. $1 is
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 06 18:46:23 UTC 2024 - 34.8K bytes - Viewed (0) -
tensorflow/c/ops.cc
TF_Status* status) { auto* cc_builder = reinterpret_cast<OpDefBuilder*>(builder); TF_SetStatus(status, TF_OK, ""); ::tensorflow::OpRegistry::Global()->Register( [cc_builder](::tensorflow::OpRegistrationData* op_reg_data) -> Status { Status result = cc_builder->Finalize(op_reg_data); delete cc_builder; return result; }); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 28 22:41:35 UTC 2022 - 10.9K bytes - Viewed (0) -
test/typeparam/issue50598.dir/a0.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 14 16:41:18 UTC 2022 - 398 bytes - Viewed (0) -
test/typeparam/issue50121.dir/a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 03 03:13:33 UTC 2022 - 495 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool_patterns.td
def GetAvgPoolOpPadAttr: NativeCodeCall<"GetAvgPoolOpPadAttr($_builder, (*$0.begin()).getDefiningOp<mhlo::CompositeOp>())">; // Returns true if the provided padding in the composite op can *not* be // satisfied by SAME or VALID tensorflow padding. def HasCustomPadding: Constraint<CPred<"GetAvgPoolOpPadAttr($_builder, (*$0.begin()).getDefiningOp<mhlo::CompositeOp>()) == $_builder.getStringAttr(\"CUSTOM\")">>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.td
"SmallVector<Value, 3>{$0, $1, $2}">; def EmptyCustomOptions : NativeCodeCall< "TFL::ConstBytesAttr::get($_builder.getContext(), \"\")">; def CustomOptions : NativeCodeCall< "CustomOptions($_builder.getContext(), $0.getDefiningOp()).value()">; class CreateStringAttr<string values> : NativeCodeCall< "$_builder.getStringAttr("# values #")">; def LegalizeTensorListReserve : Pat<(TF_TensorListReserveOp:$tf_op $shape, $num_elements),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 18 07:12:51 UTC 2023 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
region.push_back(new mlir::Block); auto saved_pos = op_builder.saveInsertionPoint(); op_builder.setInsertionPointToEnd(®ion.front()); mlir::Operation* cloned_op = op_builder.clone(*op); // Add the yield operation. op_builder.create<mlir::TFL::YieldOp>(op_loc, cloned_op->getResults()); // Now emit into the function body again. op_builder.restoreInsertionPoint(saved_pos);
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/jit/mark_for_compilation_pass_test.cc
// Builds a Symbolic gradient for Supported NodeBuilder b_builder("B", "SymbolicGradient", builder.opts().op_registry()); NameAttrList b_name_attr; b_name_attr.set_name("Supported"); b_builder.Attr("f", b_name_attr); b_builder.Attr("Tin", {DT_FLOAT, DT_FLOAT}); b_builder.Attr("Tout", {DT_FLOAT}); b_builder.Input({a, a}); Node* b = builder.opts().FinalizeBuilder(&b_builder);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 14 10:11:10 UTC 2024 - 79.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td
NativeCodeCall<"GetI64ElementsAttr({" # value # "}, &$_builder)">; class GetF32Scalar<int value> : NativeCodeCall<"GetF32Scalar(&$_builder, " # value # ")">; def TrueBoolAttr : AttrConstraint<CPred<"$_self.cast<::mlir::BoolAttr>().getValue()">>; def CreateTFShapeOp : NativeCodeCall< "$_builder.create<TF::ShapeOp>($0.getLoc(), $1, $2)">; def IsI32 : NativeCodeCall<
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 24.7K 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)