File "main.py", line 1, in
import bidirectional_rnn as birnn
File "/Users/hchuphal/Desktop/github/thesis2020/Code/DeepFaultLocalization-master/bidirectional_rnn.py", line 4, in
from tensorflow.contrib import rnn, rnn_cell
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/init.py", line 40, in
from tensorflow.contrib import distribute
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/distribute/init.py", line 33, in
from tensorflow.contrib.distribute.python.tpu_strategy import TPUStrategy
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/distribute/python/tpu_strategy.py", line 27, in
from tensorflow.contrib.tpu.python.ops import tpu_ops
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/tpu/init.py", line 73, in
from tensorflow.contrib.tpu.python.tpu.keras_support import tpu_model as keras_to_tpu_model
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/tpu/python/tpu/keras_support.py", line 62, in
from tensorflow.contrib.tpu.python.tpu import tpu
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/tpu/python/tpu/tpu.py", line 24, in
from tensorflow.contrib.compiler import xla
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/compiler/xla.py", line 28, in
from tensorflow.python.estimator import model_fn as model_fn_lib
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/python/estimator/model_fn.py", line 26, in
from tensorflow_estimator.python.estimator import model_fn
File "/Users/hchuphal/opt/anaconda3/lib/python3.7/site-packages/tensorflow_estimator/python/estimator/model_fn.py", line 33, in
from tensorflow.python.saved_model import model_utils as export_utils
ImportError: cannot import name 'model_utils' from 'tensorflow.python.saved_model'
Getting this error whilst running the scipt..used below command to run it::
File "main.py", line 1, in
import bidirectional_rnn as birnn
File "/Users/hchuphal/Desktop/github/thesis2020/Code/DeepFaultLocalization-master/bidirectional_rnn.py", line 4, in
from tensorflow.contrib import rnn, rnn_cell
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/init.py", line 40, in
from tensorflow.contrib import distribute
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/distribute/init.py", line 33, in
from tensorflow.contrib.distribute.python.tpu_strategy import TPUStrategy
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/distribute/python/tpu_strategy.py", line 27, in
from tensorflow.contrib.tpu.python.ops import tpu_ops
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/tpu/init.py", line 73, in
from tensorflow.contrib.tpu.python.tpu.keras_support import tpu_model as keras_to_tpu_model
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/tpu/python/tpu/keras_support.py", line 62, in
from tensorflow.contrib.tpu.python.tpu import tpu
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/tpu/python/tpu/tpu.py", line 24, in
from tensorflow.contrib.compiler import xla
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/contrib/compiler/xla.py", line 28, in
from tensorflow.python.estimator import model_fn as model_fn_lib
File "/Users/hchuphal/.local/lib/python3.7/site-packages/tensorflow/python/estimator/model_fn.py", line 26, in
from tensorflow_estimator.python.estimator import model_fn
File "/Users/hchuphal/opt/anaconda3/lib/python3.7/site-packages/tensorflow_estimator/python/estimator/model_fn.py", line 33, in
from tensorflow.python.saved_model import model_utils as export_utils
ImportError: cannot import name 'model_utils' from 'tensorflow.python.saved_model'
Getting this error whilst running the scipt..used below command to run it::
python main.py ./DeepFaultLocalization-master/data ./DeepFaultLocalization-master/result/ Time 27 mlp CrossDeepFL softmax 10 10