Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AddOneModel (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow_to_stablehlo/python/integration_test/tensorflow_to_stablehlo_test.py

    from tensorflow.python.platform import test
    
    
    def build_savedmodel(tempdir) -> str:
    
      class AddOneModel(tf.keras.Model):
    
        def call(self, x):
          return x + 1
    
      model = AddOneModel()
    
      x_train = tf.constant([1, 2, 3, 4, 5], dtype=tf.float32)
      y_train = tf.constant([2, 3, 4, 5, 6], dtype=tf.float32)
    
      model.compile(optimizer='sgd', loss='mse')
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top