Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for _extract_first_xla_call_module_op (0.41 sec)

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

        new_outputs = root.signatures['serving_default'](
            input_tensor=ops.convert_to_tensor(input_data)
        )
        module_str = self._extract_first_xla_call_module_op(
            self._output_saved_model_path
        )
        self.assertTrue(re.search('stablehlo.dot_general.*xi8>', module_str))
        if bias_fn:
          self.assertTrue(re.search('stablehlo.add.*xi32>', module_str))
    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/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

        # 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(
          self, output_saved_model_path: str
      ) -> str:
        """Extracts the first XlaCallModule op from output saved model to string."""
        root = load.load(output_saved_model_path)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top