Skip to content
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

platform flags #9

Open
jameschapman19 opened this issue Nov 9, 2021 · 3 comments
Open

platform flags #9

jameschapman19 opened this issue Nov 9, 2021 · 3 comments

Comments

@jameschapman19
Copy link

I didn't have problems using debuggers when the form was:

FLAGS = flags.FLAGS

and later on:

# Make sure the required fields are available in the config.
base_config.validate_config(FLAGS.config)

But I get errors with the new version:

# Make sure the required fields are available in the config.
config = _CONFIG.value
base_config.validate_config(config)

_CONFIG is None seems to be the problem. I'm using debugger from either PyCharm or VSCode.

@awehrs
Copy link

awehrs commented Nov 19, 2021

Been having the same issue

@johnnytshi
Copy link

the problem is ml_collections, the verison on pip is dated (even though it's 0.1.0 as required by jaxline)

install directly from source
pip install git+https://github.com/google/ml_collections

someone from Google needs to push a new version of ml_collections to pip, and update the requirements here

@ElPiloto
Copy link

The perceiver example from here works using absl's app:

from absl import app

# ...
# Experiment code
# ...

if __name__ == '__main__':
  flags.mark_flag_as_required('config')
  app.run(functools.partial(platform.main, Experiment))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants