- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 170 for onStop (0.23 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc
namespace mlir { namespace TF { namespace { // Creates ConstOp for int32_t value. ConstOp createI32ConstOp(int32_t value, Location loc, PatternRewriter* rewriter) { auto int_attr = IntegerAttr::get(rewriter->getIntegerType(32), value); return rewriter->create<ConstOp>(loc, int_attr); } // Creates ConstantOp for array of int32_t.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc
} // Parses an R1 value to `shape` if it is a TF::ConstOp output. Otherwise, // returns an error. LogicalResult GetConstShapeValue(Value shape_value, llvm::SmallVector<int64_t, 8>* shape) { auto shape_op = shape_value.getDefiningOp(); if (!shape_op) return failure(); auto shape_const_op = llvm::dyn_cast<TF::ConstOp>(shape_op); if (!shape_const_op) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td
"CreateInt32ConstOrCast($0, $_loc, $_builder)">; // Creates an int32 constant op from an integer attribute $0. def CreateInt32ConstOpFromIntAttr : NativeCodeCall<"$_builder.create<TF::ConstOp>($_loc, DenseElementsAttr::get(RankedTensorType::get({}, $_builder.getI32Type()), {static_cast<int32_t>($0.cast<IntegerAttr>().getInt())}))">; //===----------------------------------------------------------------------===//
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/quantization/tensorflow/cc/save_variables_test.cc
EXPECT_THAT(bundle_reader.status(), Not(IsOk())); } TEST_F(SaveVariablesToCheckpointTest, MutableVariablesNotSaved) { // This function includes an AssignVariableOp that does not initialize the // variable from a ConstOp. In this case, the variable is not saved to the // checkpoint. constexpr absl::string_view kModuleCode = R"mlir( module attributes {tf_saved_model.semantics} {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 16.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc
// reduce_fn call. WhileRegionOp CreateDatasetWhile(OpBuilder builder, ReduceDatasetOp reduce_dataset) { auto const_true = builder.create<TF::ConstOp>( reduce_dataset.getLoc(), DenseIntElementsAttr::get( RankedTensorType::get(/*shape=*/{}, builder.getI1Type()), true)); SmallVector<Value, 4> while_input_values;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc
mlir::RankedTensorType::get({}, builder->getIntegerType(32)); auto split_dimension_attr = mlir::DenseElementsAttr::get(split_dim_type, split_dimension); auto split_dimension_op = builder->create<mlir::TF::ConstOp>( location, split_dim_type, split_dimension_attr); // Correctly set output shapes of split op output if input shape is statically // known. mlir::Type output_type;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 21:28:13 UTC 2024 - 34K bytes - Viewed (0) -
src/image/draw/draw_test.go
b := dst.Bounds() // Draw the (src, mask, op) onto a copy of dst using a slow but obviously correct implementation. golden := makeGolden(dst, b, src, src.Bounds().Min, nil, image.Point{}, op) if !b.Eq(golden.Bounds()) { t.Errorf("drawOverlap xoff=%d,yoff=%d: bounds %v versus %v", xoff, yoff, dst.Bounds(), golden.Bounds()) continue } // Draw the same combination onto the actual dst using the optimized DrawMask implementation.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 18:07:05 UTC 2023 - 26K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc
// quantizable but is necessary to make the conversion successful. bool IsAlwaysAllowlistedOp(Operation *op) { return llvm::isa< // clang-format off // go/keep-sorted start TF::ConstOp, TF::IdentityOp, TF::PartitionedCallOp, TF::StatefulPartitionedCallOp // go/keep-sorted end // clang-format on >(op); } // LINT.IfChange
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.cc
// %iota = "mhlo.broadcast_in_dim(%iota_r1){ // broadcast_dimensions = dense<[$dimensions[0]]>}, // // where $dimensions is of size 1. It ususally comes from an IotaOp that is // folded to ConstOp (folded rank1 iota) + BroadCastInDimOp. bool MatchConstIotaBroadCastInDim(DenseIntElementsAttr dimensions, Value iota) { if (dimensions.getNumElements() != 1) return false; auto iota_broadcast =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc
Operation *TensorFlowDialect::materializeConstant(OpBuilder &builder, Attribute value, Type type, Location loc) { return builder.create<ConstOp>(loc, type, value); } } // namespace TF
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0)