- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TfRecordRepresentativeDatasetSaver (0.3 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py
).astype(np.float32) } dataset_path = self.create_tempfile('tfrecord').full_path path_map = {'serving_default': dataset_path} repr_dataset.TfRecordRepresentativeDatasetSaver(path_map).save( {'serving_default': data_gen()} ) config = qc.QuantizationConfig( static_range_ptq_preset=qc.StaticRangePtqPreset( representative_datasets=[
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/quantize_model.py
_, path_map[signature_key] = tempfile.mkstemp( suffix='.tfrecord', prefix=signature_key ) expected_input_key_map[signature_key] = signature_def.inputs.keys() return repr_dataset.TfRecordRepresentativeDatasetSaver( path_map=path_map, expected_input_key_map=expected_input_key_map, ).save(representative_dataset_map) def _run_static_range_qat( src_saved_model_path: str,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 34.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py
representative_dataset: repr_dataset.RepresentativeDataset = [ {'input_tensor': rng.uniform(size=(1, 1024)).astype(np.float32)} for _ in range(4) ] dataset_file_map = repr_dataset.TfRecordRepresentativeDatasetSaver( {'serving_default': os.path.join(self._input_saved_model_path, 'repr')} ).save({'serving_default': representative_dataset}) tags = {tag_constants.SERVING}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 235.6K bytes - Viewed (0)