Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_get_num_samples_returns_none_when_len_raises_error (0.34 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py

        # Make sure that the __next__() is never called during the
        # get_num_samples call.
        self.assertLen(list(repr_ds), num_samples)
    
      def test_get_num_samples_returns_none_when_len_raises_error(self):
        class LenRaisingError:
          """A test-only class that raises an error when len() is called.
    
          This mocks the behavior of an Iterator whose size cannot be determined.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 04 07:35:19 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top