Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ConvertTFEinsumOp (0.35 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/einsum.h

    // cases, we can convert this op to other TF Ops, which in later passes
    // properly convert to TF Lite ops.
    struct ConvertTFEinsumOp : public OpRewritePattern<TF::EinsumOp> {
     public:
      explicit ConvertTFEinsumOp(MLIRContext* context)
          : OpRewritePattern<TF::EinsumOp>(context) {}
    
      LogicalResult matchAndRewrite(TF::EinsumOp op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Dec 12 02:01:03 UTC 2020
    - 2.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

        // For the uniform opset, it is requested to maintain the BatchMatmul logic.
        // For the TF opset, since we need to test the effect we remain it as a
        // future work.
        patterns.add<TF::ConvertTFEinsumOp>(ctx);
      }
    
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        func.emitError() << "quant-prepare-lifting failed.";
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

    void TransformEinsumPass::runOnOperation() {
      RewritePatternSet patterns(&getContext());
      auto func = getOperation();
    
      patterns.add<ConvertTFEinsumOp>(&getContext());
      (void)applyPatternsAndFoldGreedily(func, std::move(patterns));
    }
    
    }  // namespace
    
    LogicalResult ConvertTFEinsumOp::matchAndRewrite(
        TF::EinsumOp op, PatternRewriter& rewriter) const {
      if (op->getNumOperands() == 1) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

                           ReorderFakeQuantPattern<TF::TransposeOp>>(ctx);
      if (unfold_batch_matmul_) {
        TF::PopulateUnrollTfBatchMatMul(ctx, phase_2_patterns);
      }
      phase_2_patterns.add<TF::ConvertTFEinsumOp, ConvertTFStridedSlice,
                           ConvertRfftToRfft2d, RemoveIdentity>(ctx);
      phase_2_patterns.add<ConvertTFConv2D, ConvertTFDepthwiseConv2dNative>(
          ctx, allow_bf16_and_f16_type_legalization_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
Back to top