- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for create_tempdir (0.22 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_quantize_model_test.py
"""Test cases for quantize_model python wrappers.""" def test_quantize_model_fails_when_invalid_quant_options_serialization(self): src_saved_model_path = self.create_tempdir().full_path dst_saved_model_path = self.create_tempdir().full_path signature_def_keys = ['serving_default'] quant_opts_serialized = 'invalid proto serialization string'.encode('utf-8')
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 05 02:09:24 UTC 2024 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/python/testing_test.py
class FileSizeTestCase(test.TestCase): def setUp(self): super().setUp() self.path_a = self.create_tempdir('dir_a').full_path self.create_tempfile(file_path='dir_a/w.txt', content='abcd') self.path_b = self.create_tempdir('dir_b').full_path self.create_tempfile(file_path='dir_b/x.txt', content='1234') self.create_tempfile(file_path='dir_b/y.txt', content='56')
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_base.py
self._input_saved_model_path = self.create_tempdir('input').full_path self._output_saved_model_path = self.create_tempdir('output').full_path # Extra output path occasionally used for comparing two different # quantized models. self._output_saved_model_path_2 = self.create_tempdir('output2').full_path def _extract_first_xla_call_module_op(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 18.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/concurrency_test.py
), 'y': ops.convert_to_tensor( np.random.uniform(size=(10)).astype('f4') ), } root = ModelWithAdd() temp_path = self.create_tempdir().full_path saved_model_save.save( root, temp_path, signatures=root.add.get_concrete_function() ) quantization_options = quant_opts_pb2.QuantizationOptions(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 11 00:47:05 UTC 2023 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py
self._input_saved_model_path = self.create_tempdir('input').full_path self._output_saved_model_path = self.create_tempdir('output').full_path # Extra output path occasionally used for comparing two different # quantized models. self._output_saved_model_path_2 = self.create_tempdir('output2').full_path def _get_dir_size(self, path: str = '.'):
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 08:51:46 UTC 2024 - 51.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py
path_map = {'serving_default': dataset_path} repr_dataset.TfRecordRepresentativeDatasetSaver(path_map).save( {'serving_default': data_gen()} ) calibration_data_dir = self.create_tempdir('calibration_data').full_path config = qc.QuantizationConfig( static_range_ptq_preset=qc.StaticRangePtqPreset( representative_datasets=[ qc.RepresentativeDatasetConfig(
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/tensorflow/python/integration_test/quantize_model_test.py
): input_type = dtypes.int64 model = self._create_gather_model(input_type, use_variable) input_saved_model_path = self.create_tempdir('input').full_path saved_model_save.save(model, input_saved_model_path) tags = {tag_constants.SERVING} output_directory = self.create_tempdir().full_path quantization_options = quant_opts_pb2.QuantizationOptions(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 235.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java
/** * Unit test for {@link Files#createTempDir}. * * @author Chris Nokleberg */ @SuppressWarnings("deprecation") // tests of a deprecated method public class FilesCreateTempDirTest extends TestCase { public void testCreateTempDir() throws IOException { if (JAVA_IO_TMPDIR.value().equals("/sdcard")) { assertThrows(IllegalStateException.class, Files::createTempDir); return; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 06 17:11:11 UTC 2023 - 4.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java
/** * Unit test for {@link Files#createTempDir}. * * @author Chris Nokleberg */ @SuppressWarnings("deprecation") // tests of a deprecated method public class FilesCreateTempDirTest extends TestCase { public void testCreateTempDir() throws IOException { if (JAVA_IO_TMPDIR.value().equals("/sdcard")) { assertThrows(IllegalStateException.class, Files::createTempDir); return; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 06 17:11:11 UTC 2023 - 4.3K bytes - Viewed (0) -
android/guava/src/com/google/common/io/TempFileCreator.java
/** * @throws IllegalStateException if the directory could not be created (to implement the contract * of {@link Files#createTempDir()}, such as if the system does not support creating temporary * directories securely */ abstract File createTempDir(); abstract File createTempFile(String prefix) throws IOException; private static TempFileCreator pickSecureCreator() { try {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 06 17:11:11 UTC 2023 - 12.5K bytes - Viewed (0)