I want to use the following file :
from tensorflow.python.grappler import model_analyzer
But tensorflow by default does not have the model_analyzer.py
in pip packages. I can’t find the file under .../envs/tfenv/lib/python3.8/site-packages/tensorflow/python/grappler/
.
However, the model_analyzer.py
is indeed under the tensorflow’s source directory at /tensorflow/tensorflow/blob/master/tensorflow/python/grappler/model_analyzer.py
Why tensorflow ignores these files under grappler directory? How should I build tensorflow for using these files?