- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for ShapedType (0.15 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
ConversionPatternRewriter& rewriter) const final { ShapedType operand_type = mlir::cast<ShapedType>(op.getOperand().getType()); ShapedType update_type = mlir::dyn_cast_or_null<ShapedType>(op.getUpdate().getType()); ShapedType start_indices_type = mlir::dyn_cast_or_null<ShapedType>( op.getStartIndices().front().getType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
bool IsLastDimEqualToNumElements(Type type1, Type type2) { return (mlir::cast<ShapedType>(type1).getRank() >= 1 && mlir::cast<ShapedType>(type1).getDimSize( mlir::cast<ShapedType>(type1).getRank() - 1) == mlir::cast<ShapedType>(type2).getNumElements()); } bool CanFuseConvOrDepthwiseConvShapes(const ArrayRef<int64_t> filter_shape,
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/ir/tfl_ops.cc
if (dim == axis) { if (ShapedType::isDynamic(operand_dim_size) || ShapedType::isDynamic(result_dim_size)) { result_dim_sizes[axis] = ShapedType::kDynamic; } else { result_dim_sizes[axis] += operand_dim_size; } continue; } if (ShapedType::isDynamic(operand_dim_size)) continue; if (ShapedType::isDynamic(result_dim_size)) {
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_n_z.cc
return op.emitOpError("requires scalar output"); return success(); } OpFoldResult SizeOp::fold(FoldAdaptor) { ShapedType output_type = getType().cast<ShapedType>(); if (!output_type.hasRank()) return {}; ShapedType input_type = getOperand().getType().cast<ShapedType>(); if (!input_type.hasStaticShape()) return {}; int size = input_type.getNumElements(); return DenseElementsAttr::get(
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_a_m.cc
if (expected_out_row_dim != ShapedType::kDynamic && out_row_dim != ShapedType::kDynamic && out_row_dim != expected_out_row_dim) return op.emitOpError() << "found invalid output dimension on row, expected " << expected_out_row_dim << " but got " << out_row_dim; if (expected_out_col_dim != ShapedType::kDynamic && out_col_dim != ShapedType::kDynamic &&
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/ir/tfl_ops.td
CPred<"$_op.getOperand(0).getType().cast<ShapedType>().getRank() <= 1">, CPred<"$_op.getOperand(0).getType().cast<ShapedType>().getRank() == 2 && !$_op.getOperand(0).getType().cast<ShapedType>().hasStaticShape()">, CPred<"$_op.getOperand(0).getType().cast<ShapedType>().getRank() == 2 && $_op.getOperand(0).getType().cast<ShapedType>().getShape()[1] <= 4">]>>]> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 186K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
Type TypeMeet(Type lhs, Type rhs) { DCOMMENT("RefineTypeWith : " << lhs << " : " << rhs); if (lhs == rhs) return lhs; auto rhs_shape_type = mlir::dyn_cast<ShapedType>(rhs); if (!rhs_shape_type) return lhs; auto lhs_shape_type = mlir::cast<ShapedType>(lhs); if (lhs_shape_type.hasRank() && rhs_shape_type.hasRank() && lhs_shape_type.getRank() != rhs_shape_type.getRank()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
const auto [input_height, input_width] = GetDimSize(op->getOperand(0).getType().cast<ShapedType>().getShape(), dimension_numbers.getInputSpatialDimensions()); const auto [output_height, output_width] = GetDimSize(op->getResult(0).getType().cast<ShapedType>().getShape(), dimension_numbers.getOutputSpatialDimensions());
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/lite/flatbuffer_export.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0)