Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for HasField (0.11 sec)

  1. platforms/jvm/normalization-java/src/test/groovy/org/gradle/internal/normalization/java/ApiClassExtractorTest.groovy

            def extracted = api.extractAndLoadApiClassFrom(clazz)
    
            then:
            hasField(clazz.clazz, 'foo', int).modifiers == Modifier.VOLATILE
            hasField(extracted, 'foo', int).modifiers == Modifier.VOLATILE
            hasField(clazz.clazz, 'bar', int).modifiers == Modifier.FINAL
            hasField(extracted, 'bar', int).modifiers == Modifier.FINAL
            hasMethod(clazz.clazz, 'getFoo').modifiers == Modifier.ABSTRACT
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/python/quantization.py

        quantization_specs: qc.QuantizationSpecs, method: str
    ) -> bool:
      """Returns whether a given QuantizationSpecs has the given quantization method."""
      for spec in quantization_specs.specs:
        if spec.method.HasField(method):
          return True
      return False
    
    
    # TODO: b/310594193 - Export API to pip package.
    def quantize_saved_model(
        src_saved_model_path: str,
        dst_saved_model_path: str,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 12:53:33 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

        return attr_val.i
      elif attr_type == TFRTypes.F32:
        return attr_val.f
      elif attr_type == TFRTypes.ATTR:
        # string
        if attr_val.HasField('s'):
          return '"{}"'.format(attr_val.s.decode())
        # type
        if attr_val.HasField('type'):
          if attr_val.type == types_pb2.DT_FLOAT:
            return 'f32'
          elif attr_val.type == types_pb2.DT_INT32:
            return 'i32'
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  4. platforms/jvm/normalization-java/src/test/groovy/org/gradle/internal/normalization/java/ApiClassExtractorTestSupport.groovy

            } catch (NoSuchFieldException ex) {
                return
            }
            throw new AssertionError("Should not have found field $name of type $type on class $c")
        }
    
        protected static Field hasField(Class c, String name, Class type) {
            try {
                def f = c.getDeclaredField(name)
                if (f.type != type) {
                    throw new AssertionError("Field $name was found on class $c but " +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.py

      if not quantization_options.signature_keys:
        quantization_options.signature_keys.append(
            signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY
        )
    
      if not quantization_options.HasField('freeze_all_variables'):
        quantization_options.freeze_all_variables = True
    
      if quantization_options.enable_legacy_weight_only:
        raise ValueError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset.py

          corresponding signature def key.
        """
        repr_dataset_map = {}
        for signature_def_key, dataset_file in self.dataset_file_map.items():
          if dataset_file.HasField('tfrecord_file_path'):
            repr_dataset_map[signature_def_key] = self._load_tf_record(
                dataset_file.tfrecord_file_path
            )
          else:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.py

      Args:
        exported_model: ExportedModel to take the SaverDef from.
    
      Returns:
        SaverDef instance if the field `saver_def` is set. None otherwise.
      """
      if exported_model.HasField('saver_def'):
        return exported_model.saver_def
      return None
    
    
    def _copy_assets(src_path: str, dst_path: str) -> None:
      """Copies the assets directory of the saved model.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 05:32:11 UTC 2024
    - 27.4K bytes
    - Viewed (0)
Back to top