Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SimpleModel (0.1 sec)

  1. tensorflow/cc/experimental/libtf/tests/generate_testdata.py

        self.var_arr = [variables.Variable(1.), variables.Variable(2.)]
        self.dict1 = {"a": 1.}
        self.var_dict = {"a": variables.Variable(1.), "b": variables.Variable(2.)}
    
    
    class SimpleModel(module.Module):
      """A simple model used for exercising the C++ API."""
    
      @def_function.function(input_signature=[
          tensor_spec.TensorSpec(shape=(), dtype=dtypes.float32),
      ])
      def test_float(self, x):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 15 16:58:38 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/DefaultModelSchemaExtractorTest.groovy

        }
    
        @Managed
        interface Thing {}
    
        @Managed
        interface SpecialThing extends Thing {}
    
        @Managed
        interface SimpleModel {
            Thing getThing()
        }
    
        @Managed
        interface SpecialModel extends SimpleModel {
            SpecialThing getThing()
    
            void setThing(SpecialThing thing)
        }
    
        def "a subclass may specialize a property type"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 29.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

      Run all tests cases in both the graph mode (default in TF1) and the eager mode
      (default in TF2) to ensure support for when TF2 is disabled.
      """
    
      class SimpleModel(module.Module):
    
        def __init__(self):
          self.filters = np.random.uniform(low=-1.0, high=1.0, size=(4, 3)).astype(
              'f4'
          )
    
        @def_function.function(
            input_signature=[
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
Back to top