Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ConvertFakeQuantOps (0.42 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/utils/fake_quant_utils.cc

        FetchMinMaxAttrs<TF::FakeQuantWithMinMaxArgsOp>>;
    
    // Removes the wrapper of the tf.FakeQuant* ops and creates the quant.qcast
    // and quant.dcast pairs before tf.FakeQuant* ops are being foled.
    LogicalResult ConvertFakeQuantOps(func::FuncOp func, MLIRContext* ctx,
                                      bool use_fake_quant_num_bits) {
      OpBuilder builder(func);
    
      // Insert the quant.qcast/quant.dcast ops in place of the tf.FakeQuant* ops to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_fake_quant_to_qdq.cc

    static PassRegistration<ConvertFakeQuantToQdqPass> pass;
    
    void ConvertFakeQuantToQdqPass::runOnOperation() {
      MLIRContext* ctx = &getContext();
      func::FuncOp func = getOperation();
    
      if (failed(
              ConvertFakeQuantOps(func, ctx, /*use_fake_quant_num_bits=*/false))) {
        func.emitError() << "quant-convert-fake-quant-to-qdq pass failed.";
        signalPassFailure();
      }
    
      // For removing dead FakeQuant* ops
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 15 00:56:15 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/fake_quant_utils.cc

            FetchMinMaxAttrs<TF::FakeQuantWithMinMaxArgsOp>>;
    
    // Removes the wrapper of the tf.FakeQuant* ops and creates the tfl.quantize
    // and tfl.dequantize pairs before tf.FakeQuant* being foled.
    LogicalResult ConvertFakeQuantOps(func::FuncOp func, MLIRContext* ctx,
                                      bool use_fake_quant_num_bits) {
      OpBuilder builder(func);
      if (failed(UnwrapTFCustomOps(func, builder))) {
        return failure();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/utils/fake_quant_utils.h

      }
    
      bool use_fake_quant_num_bits_;
    };
    
    // Removes the wrapper of the tf.FakeQuant* ops and creates the quant.qcast
    // and quant.dcast pairs before tf.FakeQuant* ops are being folded.
    LogicalResult ConvertFakeQuantOps(func::FuncOp func, MLIRContext *ctx,
                                      bool use_fake_quant_num_bits);
    
    }  // namespace quant
    }  // namespace mlir
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/fake_quant_utils.h

      }
    
      bool use_fake_quant_num_bits_;
    };
    
    // Removes the wrapper of the tf.FakeQuant* ops and creates the tfl.quantize
    // and tfl.dequantize pairs before tf.FakeQuant* being foled.
    LogicalResult ConvertFakeQuantOps(func::FuncOp func, MLIRContext *ctx,
                                      bool use_fake_quant_num_bits = false);
    
    // Returns the names of all the considered tf.FakeQuant* ops.
    std::vector<std::string> AllTfFakeQuantOps();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

      // min/max operands of the tf.FakeQuant* are constants to be matched. The
      // following round of optimization will folding the unwrapped
      // tf.FakeQuant* ops with the weight constants.
      if (failed(ConvertFakeQuantOps(func, ctx, use_fake_quant_num_bits_))) {
        signalPassFailure();
        return;
      }
    
      // Load the generated pattern again, so new quantization pass-through
      // will be applied.
    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