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
'MobileNetV2' object has no attribute 'to_global' #7560
Comments
hi, thanks for your issue. The documents url you post is for OneFlow of master version, which should be installed by: It seems you install OneFlow of version 0.6.0, but refered to documents of master version. Upgrading OneFlow to master version may solve this problem. Or you can downgrade your code by replacing Thanks your feedback again. |
Thanks for the solutions, but i can't run the code properly now, here are the Updates So first i try to update the version of oneflow to 0.7.0 using then i tried the second solution by replacing
then I change the code |
could you please to make sure OneFlow 0.7.0 are being used indeed? by run commands: python -m oneflow --doctor if not 0.7.0 shown, just run
sorry for our API changing. if you keep using OneFlow 0.6.0, you can use
if you want to use whole 8 cores, just use:
the documents compatible with 0.6.0 can be found at: https://docs.oneflow.org/v0.5.0/parallelism/02_sbp.html#placement This PR https://github.com/Oneflow-Inc/oneflow-documentation/pull/411/files update the documents for API changing ( May those info helps you. Thanks for your feedback again. |
Summary
I run the code from the tutorial https://docs.oneflow.org/master/parallelism/05_ddp.html
for 通过设置 SBP 做数据并行训练, but it turns out with
'MobileNetV2' object has no attribute 'to_global'
i also try define NeuralNetwork class using class NeuralNetwork(nn.Module):
and model = NeuralNetwork().to(DEVICE)
then try to use model.to_global to allocate the model to GPU clusters, but it shows the same error:
'nn.Module' object has no attribute 'to_global'
Code to reproduce bug
Same code https://docs.oneflow.org/master/parallelism/05_ddp.html#sbp
System Information
python3 -m oneflow --doctor
): 0.6.0The text was updated successfully, but these errors were encountered: