Spaces:
Configuration error
Configuration error
Download code/submodules/Pplan/Policy/base.py from XDimLab/hugsim_web_server_0: direct link, hf CLI and curl.
- Browser
- Download file 367 Bytes
-
https://huggingface.co/spaces/XDimLab/hugsim_web_server_0/resolve/main/code/submodules/Pplan/Policy/base.py
- Command line
-
hf download hf://spaces/XDimLab/hugsim_web_server_0/code/submodules/Pplan/Policy/base.py
-
curl -L -o base.py https://huggingface.co/spaces/XDimLab/hugsim_web_server_0/resolve/main/code/submodules/Pplan/Policy/base.py
367 Bytes
| import abc | |
| class Policy(abc.ABC): | |
| def __init__(self, device, *args, **kwargs): | |
| self.device = device | |
| def get_action(self, obs_dict, **kwargs): | |
| """Predict an action based on the input observation """ | |
| pass | |
| def eval(self): | |
| """Set the policy to evaluation mode""" | |
| pass |