- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for Franko (0.14 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
auto shape = ranked_ty.getShape(); int rank = shape.size(); SmallVector<APInt, 4> dimensions; dimensions.reserve(rank); for (int i = 0; i < rank; ++i) dimensions.push_back(APInt(out_width, shape[i])); auto result_type = tensorflow::GetTypeFromTFTensorShape( {rank}, IntegerType::get(input_ty.getContext(), out_width));
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/ir/tfl_ops.cc
} const int64_t rank = input_type.getRank(); if (rank <= 0) { return emitOptionalError(loc, "input should be of rank larger than 0"); } int64_t axis_value = op.getAxisAttr().getInt(); if (axis_value < 0) { axis_value += rank; } if (axis_value < 0 || axis_value >= rank) { return emitOptionalError(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
if (!input_ty) return success(); int rank = input_ty.getRank(); if (rank != 1 && rank != 2) return op.emitOpError("requires input of rank 1 or 2"); if (rank == 1) { int64_t dim0 = input_ty.getDimSize(0); if (dim0 != ShapedType::kDynamic && dim0 != 4 && dim0 != 2) return op.emitOpError("requires 1D input of size 4 or size 2"); } if (rank == 2) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
input = InsertDilateOp(op, rewriter); } TensorType operand_type = input.getType().cast<TensorType>(); const int64_t rank = operand_type.getRank(); // Shape of padding should be [rank, 2]. SmallVector<int64_t> shape{rank, 2}; TensorType padding_type = operand_type.cloneWith(shape, rewriter.getI32Type()); ArrayRef<int64_t> padding_low = op.getEdgePaddingLow();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir
func.return %0 : tensor<2x2xf32> } // ----- // Test tf.Transpose with invalid rank of y func.func @testTranspose(tensor<2x3xf32>) -> tensor<3x2x1xf32> { ^bb0(%arg0: tensor<2x3xf32>): %cst = arith.constant dense<[1, 0]> : tensor<2xi32> // expected-error @+1 {{x should be of the same rank with y, got x of rank 2, and y of rank 3}}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 23 14:40:35 UTC 2023 - 236.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.td
// location. // Returns true if the n-th operand has unknown rank or has rank m. class TFL_OperandHasRank<int n, int m> : PredOpTrait<"operand " # n # " is " # m # "-D", Or<[TFL_OperandIsUnrankedPred<n>, CPred<"$_op.getOperand(" # n # ").getType().cast<ShapedType>().getRank() == " # m>]>>; // Returns true if the n-th operand is ranked and has rank dim. class TFL_OperandHasKnownRank<int n, int dim> : And<[
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/c_api.cc
} tensorflow::shape_inference::ShapeHandle shape = ic->output(output.index); int rank = -1; if (ic->RankKnown(shape)) { rank = ic->Rank(shape); } if (num_dims != rank) { status->status = InvalidArgument("Expected rank is ", num_dims, " but actual rank is ", rank); return; } if (num_dims == 0) { // Output shape is a scalar.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
bool TransposeFirstTwoDimToLast(DenseIntElementsAttr perm) const { int rank = perm.getNumElements(); if (rank < 3) return false; for (int i = 0; i < rank - 2; i++) { if (perm.getValues<APInt>()[i] != i + 2) { return false; } } return perm.getValues<APInt>()[rank - 2] == 0 && perm.getValues<APInt>()[rank - 1] == 1; } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/ops.mlir
func.return %0 : tensor<2x2xi32> } // ----- func.func @pack(%arg0: tensor<2xi32>, %arg1: tensor<2xi32>) -> tensor<2x2xi32> { // expected-error @+1 {{op attribute 'axis' should be in range [-rank - 1, rank + 1), got rank = 1, and axis = 3}} %0 = "tfl.pack"(%arg0, %arg1) {axis = 3 : i32, values_count = 2 : i32} : (tensor<2xi32>, tensor<2xi32>) -> tensor<2x2xi32> func.return %0 : tensor<2x2xi32> } // -----
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 189.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
auto sort_dim = op.getDimension(); auto k = indices_ty.getDimSize(sort_dim); auto rank = keys_ty.getRank(); if (sort_dim != rank - 1 || k < 1) return rewriter.notifyMatchFailure( op, "only match for sort dim = rank - 1 and DimSize >= 1"); // In the following, we'll check indices is obtained by a iota. auto sort_dim_attr = DenseIntElementsAttr::get(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0)