- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for AreCancellablePermutations (0.15 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.cc
for (size_t i = 0; i < permutation.size(); ++i) new_shape[i] = shape[permutation[i]]; return RankedTensorType::get(new_shape, ranked_type.getElementType()); } return type; } bool AreCancellablePermutations(DenseIntElementsAttr perm0, DenseIntElementsAttr perm1) { if (perm0.getNumElements() == 0 || perm1.getNumElements() == 0) return false;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.h
int inner_size = 1); // Shuffle ranked tensor dimensions according to the permutation. Type ShuffleRankedTensorType(Type type, ArrayRef<int64_t> permutation); bool AreCancellablePermutations(DenseIntElementsAttr perm0, DenseIntElementsAttr perm1); // Default implementation of `LayoutSensitiveInterface::UpdateDataFormat` for
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
if (!matchPattern(op.getPerm(), m_Constant(&perm0)) || !matchPattern(transpose.getPerm(), m_Constant(&perm1))) return {}; // With permutation indices that cancel each other if (!AreCancellablePermutations(perm0, perm1)) return {}; if (op.getType() != transpose.getX().getType()) return {}; return transpose.getX(); } } // namespace OpFoldResult TransposeOp::fold(FoldAdaptor) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0)