Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ConstantFoldQuantizableOperands (1.05 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold_test.cc

      const auto test_func =
          module_op_ref->lookupSymbol<func::FuncOp>("test_fold_constant");
      ASSERT_THAT(test_func, NotNull());
    
      RewritePatternSet patterns(ctx_.get());
      patterns.add<ConstantFoldQuantizableOperands>(ctx_.get());
      EXPECT_TRUE(
          succeeded(applyPatternsAndFoldGreedily(test_func, std::move(patterns))));
    
      auto depthwise_conv_op =
          FindOperationOfType<TF::DepthwiseConv2dNativeOp>(test_func);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

      // with a constant operand to a preceding affine operation.
      RewritePatternSet patterns(ctx);
      populateWithGenerated(patterns);
      patterns.add<RemoveIdentity, ConstantFoldQuantizableOperands>(ctx);
      if (op_set_ != OpSet::XLA) {
        // Convert Einsum into BatchMatMul for non-XLA opsets.
        // For the uniform opset, it is requested to maintain the BatchMatmul logic.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top