- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for VerifyShapeOfReshapeOp (0.39 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/verification_utils.h
#include "mlir/IR/Types.h" // from @llvm-project namespace mlir { namespace TF { // Returns success when the given shape argument of the Reshape op is valid. LogicalResult VerifyShapeOfReshapeOp(ArrayRef<int64_t> shape); } // namespace TF } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Nov 14 00:53:52 UTC 2020 - 1.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/verification_utils.cc
#include "mlir/IR/BuiltinTypes.h" // from @llvm-project #include "mlir/IR/Types.h" // from @llvm-project #include "mlir/Support/LogicalResult.h" // from @llvm-project namespace mlir { namespace TF { LogicalResult VerifyShapeOfReshapeOp(ArrayRef<int64_t> shape) { bool has_dynamic_dim = false; for (int64_t dim : shape) { if (dim != ShapedType::kDynamic) { if (dim < 0) return failure(); continue; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Nov 21 16:21:18 UTC 2022 - 1.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc
new_reshape_dim_idx++; } } new_reshape_dims.push_back(new_reshape_dim); } if (non_unit_dims != old_reshape_non_unit_dims) return failure(); if (failed(VerifyShapeOfReshapeOp(new_reshape_dims))) return failure(); Type el_ty = getElementTypeOrSelf(op.getType()); TF::ConstOp new_reshape_shape = GetI64ConstantTensor(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc
rhs_reshape_segids.at(std::get<0>(i)) = num_rhs_reshape_segids; } ++num_rhs_reshape_segids; // If LHS requires reshapes. if (lhs_rank != num_lhs_reshape_segids) { if (succeeded(VerifyShapeOfReshapeOp(lhs_shape))) { *lhs = createReshapeOp(*lhs, lhs_shape, lhs_type.getElementType(), loc, rewriter); } else {
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/lite/experimental/tac/transforms/device_transform_patterns.cc
if (i == pack_axis) { pack_out_shape.push_back(count); } else { pack_out_shape.push_back(input_type.getDimSize(j)); j++; } } if (failed(TF::VerifyShapeOfReshapeOp(pack_out_shape))) return failure(); // Insert the concat op. auto concat_out_type = RankedTensorType::get(concat_out_shape, input_type.getElementType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 25.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc
revised_shape.emplace_back(1); } else { revised_shape.emplace_back(original_input_shape[index++]); } new_axis_mask >>= 1; } if (failed(TF::VerifyShapeOfReshapeOp(revised_shape))) return failure(); const int dim_size = revised_shape.size(); Location loc = strided_slice_op.getLoc(); auto shape_type = tensorflow::GetTypeFromTFTensorShape(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 64.6K bytes - Viewed (0)