H13-311_V3.5 · Question #347
in TensorFlow2.0 in tf.contrib The method can continue to be used.
The correct answer is B. FALSE. B is correct because tf.contrib was entirely removed in TensorFlow 2.0. The contrib module was a staging area in TF 1.x for experimental and community-contributed code that hadn't yet been integrated into the core API - it was explicitly deprecated and eliminated during the TF…
Question
in TensorFlow2.0 in tf.contrib The method can continue to be used.
Options
- ATRUE
- BFALSE
How the community answered
(16 responses)- A13% (2)
- B88% (14)
Explanation
B is correct because tf.contrib was entirely removed in TensorFlow 2.0. The contrib module was a staging area in TF 1.x for experimental and community-contributed code that hadn't yet been integrated into the core API - it was explicitly deprecated and eliminated during the TF 2.0 migration.
Why A is wrong: tf.contrib cannot be used in TF 2.0 at all - not even partially. Attempting to access it raises an AttributeError. Some contrib functionality was promoted into the core TF API or tf.keras, but the contrib namespace itself is gone.
Memory tip: Think of contrib as TF 1.x's "experimental lab" - when TF 2.0 launched as a stable, cleaned-up release, the lab was permanently shut down. If you see tf.contrib in code, it's a reliable signal the code was written for TF 1.x.
Topics
Community Discussion
No community discussion yet for this question.