Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for transpose_ops (0.2 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

    namespace {
    
    // Helper method that returns an op from 'transpose_ops' that match criteria
    // for an 'operand' and 'permutation'
    TransposeOp ReuseExistingTranspose(const OpOperand* operand,
                                       const SmallVector<int64_t, 4>& permutation,
                                       Operation* op, ConstOp permutation_op,
                                       SmallVector<TransposeOp, 2>* transpose_ops) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

            transpose_op.getLoc(), transpose_op.getType().getShape(), new_qtype);
        rewriter.setInsertionPointAfter(transpose_op);
        auto new_q_op = rewriter.create<quantfork::QuantizeCastOp>(
            transpose_op.getLoc(), new_tensor_type, q_op.getArg());
        auto new_dq_op = rewriter.create<quantfork::DequantizeCastOp>(
            new_q_op.getLoc(), transpose_op.getResult().getType(),
            new_q_op.getResult());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc

    using ::mlir::stablehlo::TransposeOp;
    
    // Returns `success()` if `op` is a `TransposeOp` with permutation attribute
    // equivalent to `permuation`.
    LogicalResult IsTransposeOpWithPermuation(absl::Nullable<Operation*> op,
                                              const ArrayRef<int64_t> permutation) {
      auto transpose_op = dyn_cast_or_null<TransposeOp>(op);
      return success(transpose_op != nullptr && transpose_op.getPermutation() ==
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc

        RankedTensorType pad_type = pad_op.getType().cast<RankedTensorType>();
    
        auto transpose_op = pad_input.getDefiningOp<stablehlo::TransposeOp>();
        if (!transpose_op || !transpose_op->hasOneUse()) return failure();
        Value transpose_input = transpose_op.getOperand();
    
        ArrayRef<int64_t> transpose_perm = transpose_op.getPermutation();
        SmallVector<int64_t> new_padding_low =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.td

        ),
        $bmm_rhs, ConstBoolAttrTrue, $transpose_rhs,
        $asymmetric_quantize_inputs_bmm
      ),
      (TFL_BatchMatMulOp
        (TFL_BatchMatMulOp $fc_rhs, $fc_lhs, ConstBoolAttrFalse, ConstBoolAttrFalse,
                           $asymmetric_quantize_inputs_fc,
                           (returnType (TransposeFCLastTwoDims $fc_output))
        ),
        $bmm_rhs, ConstBoolAttrFalse, $transpose_rhs,
        $asymmetric_quantize_inputs_bmm
      ),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 09 23:44:09 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

      EXPECT_EQ(fused_lstm_func_.getFunctionType().getNumResults(), 1);
    
      auto transpose_op = fused_lstm_func_.getBody().front().begin();
      transpose_op++;
      EXPECT_EQ(mlir::cast<RankedTensorType>(transpose_op->getOperand(0).getType())
                    .getDimSize(0),
                3);
      EXPECT_EQ(mlir::cast<RankedTensorType>(transpose_op->getOperand(0).getType())
                    .getDimSize(1),
                12);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

      // Transpose.
      auto transpose_op = GetTransposeOpForConv2DFilter(&builder, reshape_op);
    
      // Reshape Back.
      SmallVector<int64_t, 4> final_shape = {
          height / block_size, width / block_size,
          channel * block_size * block_size, out_channel};
      auto final_reshape_op =
          GetReshapeOpForConv2DFilter(final_shape, transpose_op, &builder);
      // Update filter of Conv2D.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc

        if (any_blargs) {
          return failure();
        }
    
        TFL::TransposeOp tpose_arg = nullptr;
        Operation *cst_arg = nullptr;
    
        for (Value opr : op->getOperands()) {
          auto *defining_op = opr.getDefiningOp();
          if (llvm::isa<TFL::TransposeOp>(defining_op) && !tpose_arg) {
            tpose_arg = llvm::dyn_cast<TFL::TransposeOp>(defining_op);
            continue;
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/optimize.cc

          return failure();
        }
    
        auto transpose_op = reshape_op_1.getInput().getDefiningOp<TransposeOp>();
        if (!transpose_op) {
          return failure();
        }
        DenseIntElementsAttr transpose_perm_1;
        if (!matchPattern(transpose_op.getPerm(), m_Constant(&transpose_perm_1)) ||
            !TransposeFirstTwoDimToLast(transpose_perm_1)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc

      SmallVector<int64_t> permutation_;
    };
    
    class FoldTransposedConstantOp
        : public OpRewritePattern<mlir::stablehlo::TransposeOp> {
     public:
      using OpRewritePattern<mlir::stablehlo::TransposeOp>::OpRewritePattern;
    
      LogicalResult match(mlir::stablehlo::TransposeOp op) const override {
        Value operand = op.getOperand();
        auto const_op =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top