Every line of 'tensorflow 2.4' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
34 def __import_tf1__(): 35 try: 36 import tensorflow.compat.v1 as tf 37 38 tf.disable_v2_behavior() 39 except: 40 import tensorflow as tf 41 42 return tf
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code