TensorFlow Questions et reponses d'entretien
Question : Explain the purpose of the tf.function input_signature parameter.Reponse : The input_signature parameter in tf.function specifies the input signature of the function. It helps in static shape checking, allowing TensorFlow to optimize the function for a specific input signature.Example: @tf.function(input_signature=[tf.TensorSpec(shape=(None,), dtype=tf.float32)]) def my_function(x): return x * x |
Enregistrer pour revision
Ajoutez cet element aux favoris, marquez-le comme difficile ou placez-le dans un ensemble de revision.
Connectez-vous pour enregistrer des favoris, des questions difficiles et des ensembles de revision.
Est-ce utile ? Oui Non
Les plus utiles selon les utilisateurs :