Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for quantize_model_test (0.17 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

    # Tries to run all tests cases in both the graph mode (default in TF1) and the
    # eager mode (default in TF2) to ensure support for when TF2 is disabled.
    class StaticRangeQuantizationTest(quantize_model_test_base.QuantizedModelTest):
    
      @parameterized.parameters(
          testing.parameter_combinations([{
              'bias_fn': (
                  None,
                  nn_ops.bias_add,
              ),
              'activation_fn': (
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/lite/quantize_model_test.cc

      float scale = (float_max - float_min) / ((1 << bit_num) - 1);
      EXPECT_THAT(scale, FloatNear(quantized_quant_params.scale[0], eps));
    }
    
    class QuantizeModelTest : public testing::Test {
     protected:
      QuantizeModelTest() {
        input_model_ = ReadModel(internal::kConvModelWith0Plus10Weights);
        readonly_model_ = input_model_->GetModel();
        model_ = UnPackFlatBufferModel(*readonly_model_);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

    from tensorflow.python.trackable import autotrackable
    from tensorflow.python.types import core
    
    # Type aliases for supported attribute types.
    _AttrValType = Union[List[int], bool, str, None]
    
    
    class QuantizedModelTest(test.TestCase, parameterized.TestCase):
      """Base test class for TF-quant tests."""
    
      def setUp(self) -> None:
        super().setUp()
    
        # Many test cases for quantization involve creating and saving the input
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
Back to top