-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'mesh_tensorflow' has no attribute 'auto_mtf' #247
Comments
I guess it's because I need to install Also it could be nice to have a documentation stating how to install it. |
@zaccharieramzi have the same , have solved it? |
@1106944911 I think I did but I am not sure exactly what's wrong. import mesh_tensorflow as mtf
import mesh_tensorflow.auto_mtf # this line is used to have auto_mtf
# your code
layout = mtf.auto_mtf.layout(graph, mesh_shape, outputs) When I did this, the However, I don't understand why I needed to install |
@1106944911 thank you |
In this example, we can see how to set the layout to be automatically picked.
However, when using this in my
model_fn
, basically replacing this line, I find myself with the following error:AttributeError: module 'mesh_tensorflow' has no attribute 'auto_mtf'
.The full stacktrace is the following:
The text was updated successfully, but these errors were encountered: