TensorFlow Pertanyaan dan Jawaban Wawancara
Question: What is the purpose of the tf.function decorator in TensorFlow 2.x?Answer: The tf.function decorator is used to convert a Python function into a TensorFlow graph, allowing for better performance through graph execution and enabling graph optimizations.Example: @tf.function def my_function(x): return x * x |
Simpan untuk Revisi
Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.
Masuk untuk menyimpan bookmark, pertanyaan sulit, dan set revisi.
Apakah ini membantu? Ya Tidak
Most helpful rated by users: