- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for get_size_ratio (0.16 sec)
-
tensorflow/compiler/mlir/quantization/common/python/testing_test.py
self.assertEqual(testing.get_dir_size(self.path_a), 4) self.assertEqual(testing.get_dir_size(self.path_b), 8) def test_get_size_ratio(self): self.assertEqual(testing.get_size_ratio(self.path_a, self.path_b), 0.5) self.assertEqual(testing.get_size_ratio(self.path_b, self.path_a), 2.0) if __name__ == '__main__':
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 08:51:46 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py
# values are arbitrary. self.assertAllClose(new_outputs, expected_outputs, rtol=0.3, atol=0.2) # Due to other meta data, the compression is not exactly 1/4. self.assertLess( testing.get_size_ratio( self._output_saved_model_path, self._input_saved_model_path ), 0.65, ) if merge_fusion_with_dequantize: # Check activation functions are explicitly present.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 51.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/python/testing.py
""" total = 0 for root, _, files in os.walk(path): for filename in files: total += os.path.getsize(os.path.join(root, filename)) return total def get_size_ratio(path_a: str, path_b: str) -> float: """Return the size ratio of the given paths. Args: path_a: Path of a directory or a file to be the nominator of the ratio.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 08:51:46 UTC 2024 - 2.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py
# Due to other meta data, the compression is not exactly 1/4. self.assertLess( testing.get_size_ratio( self._output_saved_model_path, self._input_saved_model_path ), 1 / 3, ) else: self.assertGreater( testing.get_size_ratio( self._output_saved_model_path, self._input_saved_model_path ), 2 / 3,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 235.6K bytes - Viewed (0)