TensorFlow perguntas e respostas de entrevista
Question: Explain the purpose of the tf.function input_signature parameter.Answer: 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 |
Salvar para revisao
Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.
Faca login para salvar favoritos, perguntas dificeis e conjuntos de revisao.
Isto e util? Sim Nao
Mais uteis segundo os usuarios: