अगर मैं यह कोड चलाता हूं:
import tensorflow as tf
print(tf.VERSION)
pyt = tf.python
मुझे संस्करण 1.6.0 मिलता है, लेकिन यह भी त्रुटि है:
module "tensorflow" has no attribute "python"
ऐसा क्यों है?
उत्तर:
जवाब के लिए 0 № 1Tensorflow "रों __init__.py
मैन्युअल रूप से निकालता है python
से नाम tensorflow
मॉड्यूल के नाम स्थान:
del python
की सामग्री tensorflow.python
सबमॉड्यूल के जरिए पहुंचना चाहिए tensorflow
सीधे।