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

when i using this to train ,there comes a attributrerror #1

Open
houmaolin opened this issue Feb 10, 2022 · 1 comment
Open

when i using this to train ,there comes a attributrerror #1

houmaolin opened this issue Feb 10, 2022 · 1 comment

Comments

@houmaolin
Copy link

image

Usage of Session.init is deprecated!
Traceback (most recent call last):
File "examples/train_d4rl.py", line 19, in
fire.Fire(run_algo)
File "/root/anaconda3/envs/off/lib/python3.7/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/root/anaconda3/envs/off/lib/python3.7/site-packages/fire/core.py", line 471, in _Fire
target=component.name)
File "/root/anaconda3/envs/off/lib/python3.7/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "examples/train_d4rl.py", line 12, in run_algo
algo_trainer = algo_trainer_obj(algo_init, algo_config)
File "/root/git/OfflineRL/offlinerl/algo/modelfree/cql.py", line 100, in init
super(AlgoTrainer, self).init(args)
File "/root/git/OfflineRL/offlinerl/algo/base.py", line 29, in init
self.index_path = self.exp_logger.repo.index_path
AttributeError: 'Session' object has no attribute 'repo'

@mzktbyjc2016
Copy link
Contributor

Sorry for the late reply. The above code may be compatible only for older aim (lower than 2.0.27). We have made a quick fix to this issue and please try the newest version that should have solved this issue.

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

2 participants