"Attempted relative import to non-package" in Google Cloud ML

From yesterday or the day before I get

ValueError: Attempted relative import in non-package

for import in my main trainer file for example

from . import mobilenet_v1 as mobilenet

when you run the same trainer code with exactly the same parameters in cloud ML, using the same training task. I connect my trainer with a tool gcloud. I tried redoing mine setup.pyinstead. Any indications that this might be caused?

+4
source share
1 answer

It looks like it was a Cloud ML bug. This is fixed! Thanks for the super fast turnaround.

+1
source

Source: https://habr.com/ru/post/1687688/


All Articles