- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IsTransposeTrivial (0.22 sec)
-
tensorflow/compiler/mlir/lite/utils/utils.td
// Constraint that checks if the transpose op is trivial. Trivial means that // the permutation is a cyclic permutation of the original shape with only the // identity dimensions permuted. def IsTransposeTrivial : Constraint<CPred< "TFL::IsTransposeTrivial($0.getType().cast<ShapedType>().getShape(), $1)">>; // Constraint that checks if the reshape op is equivalent to a transpose op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/utils.h
} // Returns true if the transpose op is trivial. Trivial means that // the permutation is a cyclic permutation of the original shape with only the // identity dimensions permuted. inline bool IsTransposeTrivial(llvm::ArrayRef<int64_t> input_shape, Value perm) { DenseElementsAttr perm_values_attr; if (!matchPattern(perm, m_Constant(&perm_values_attr))) return false;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td
def ConvertTrivialTransposeOpToReshapeOp : Pat< (TFL_TransposeOp:$transpose_op $input, (Arith_ConstantOp:$permutation $p1)), (TFL_ReshapeOp $input, (Arith_ConstantOp (GetShape $transpose_op))), [(IsTransposeTrivial $input, $permutation), (AnyStaticShapeTensor $input), (AnyStaticShapeTensor $transpose_op)]>; // Pattern to fuse redundant tanspose op def FoldDoubleTranspose : Pat< (TFL_TransposeOp
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 20:31:41 UTC 2024 - 66.4K bytes - Viewed (0)