[PYTHON] Tensorflow personal tips

If you want to use v1 functions when using v2

Add .compat.v1.

>>> tf.get_variable_scope()
AttributeError: module 'tensorflow' has no attribute 'variable_scope'
>>> tf.compat.v1.get_variable_scope()
<tensorflow.python.ops.variable_scope.VariableScope at 0x7f41e7efb198>

Recommended Posts

Tensorflow personal tips
python tips
numpy tips
python tips
Jupyter Tips 5
Scapy Tips
Jupyter Tips 3
Personal tips about Python (strings, around logs)
Jupyter Tips 2
Tensorflow Glossary
tensorflow mnist_deep.py
TensorFlow tutorial tutorial
Python Tips
Python tips
Personal tips when doing various things with Python 3