- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 222 for getRank (0.17 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc
for (auto idx : val1_indices) { if (idx < 0) idx = idx + val1_shape.getRank(); if (idx >= val1_shape.getRank() || val1_shape.isDynamicDim(idx)) { return false; } val1_result *= val1_shape.getDimSize(idx); } for (auto idx : val2_indices) { if (idx < 0) idx = idx + val2_shape.getRank(); if (idx >= val2_shape.getRank() || val2_shape.isDynamicDim(idx)) { return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/tftext_utils.cc
const std::vector<int> kValidNumOfOutput = {1, 2, 3}; if (input_type.getRank() >= kValidNumOfOutput.size()) { return func.emitError() << "Unrecognized input rank: " << input_type.getRank(); } if (func.getNumResults() != kValidNumOfOutput[input_type.getRank()]) { return func.emitError() << "Expect " << kValidNumOfOutput[input_type.getRank()] << "output(s) when input has rank " << input_type.getRank();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
data_rank = then_tensor.getRank(); if (then_tensor.getRank() > 0) data_first_dim = then_tensor.getShape().front(); if (else_tensor.getRank() > 0) data_first_dim = std::max(else_tensor.getShape().front(), data_first_dim); } else if (then_has_rank) { data_rank = then_tensor.getRank(); if (then_tensor.getRank() > 0) data_first_dim = then_tensor.getShape().front();
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/tensorflow/ir/tf_ops_tensor_helper.h
return type && type.getRank() == rank && mlir::isa<FloatType>(type.getElementType()); } // Returns true if the given `value` has the specified rank or has unranked // type. inline bool IsOfRankOrUnranked(Value value, int64_t rank) { RankedTensorType type = GetRankedTensorTypeForOperand(value); return !type || type.getRank() == rank; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/scatter.cc
ShapedType& updates_type, ConversionPatternRewriter& rewriter) { auto canonical_update_window_dims = llvm::to_vector( llvm::seq<int64_t>(indices_type.getRank() - 1, updates_type.getRank())); if (canonical_update_window_dims == update_window_dims) return success(); // Permute updates if `update_window_dims` are leading indices.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 12 02:29:42 UTC 2023 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
if (!output_ty) return success(); int64_t expected_output_rank = std::max(x_ty.getRank(), y_ty.getRank()); if (output_ty.getRank() != expected_output_rank) { return op.emitOpError() << "found invalid output rank, expected " << expected_output_rank << " but got " << output_ty.getRank(); } // Check output batch dim with potential broadcasting.
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/lite/transforms/optimize.cc
auto reshape_input_ty = mlir::dyn_cast<ShapedType>(reshape_input.getType()); if (!reshape_input_ty.hasStaticShape() || input_ty.getRank() == 0 || reshape_input_ty.getRank() == 0 || input_ty.getDimSize(input_ty.getRank() - 1) != reshape_input_ty.getDimSize(reshape_input_ty.getRank() - 1)) { return failure(); } // Connect the input to the one of reshape.
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/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc
auto input_shape = mlir::cast<ShapedType>(input.getType()); auto filter_shape = mlir::cast<ShapedType>(filter.getType()); if (!input_shape.hasRank() || input_shape.getRank() != 4 || !filter_shape.hasRank() || filter_shape.getRank() != 4) { emitError(loc, "input and filter are expected to be 4D tensors"); return {}; } const int feature_group_cnt =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 47.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc
auto operand_shape = builder.create<TFL::ShapeOp>( RankedTensorType::get(static_cast<int32_t>(operand_type.getRank()), builder.getIntegerType(32)), operand); const int64_t operand_rank = operand_type.getRank(); // Compute flattened out dimension and contracting dimension using // TFL::UnsortedSegmentProdOp.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc
if (!output_type) return failure(); // bias should be a vector sized of the last output dim. int64_t num_units = output_type.getDimSize(output_type.getRank() - 1); auto bias_type = mlir::RankedTensorType::get({num_units}, output_type.getElementType()); mlir::DenseElementsAttr bias_attr; if (output_type.getElementType().isF32()) { float val = 0.0;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 25.4K bytes - Viewed (0)