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

fix init packaging #16

Merged
merged 4 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ python3 examples/run_data_store.py
## then try out --server and --client mode on 2 separate terminals
```

3. Async learner-actor with Gym RL env (requires `jaxrl_m` as dependency)
3. Async learner-actor with Gym RL env (requires [jaxrl_m](https://github.com/rail-berkeley/jaxrl_minimal), [mujuco-py](https://github.com/openai/mujoco-py#install-mujoco) as dependency)

```bash
# Indicate --learner or --actor mode, no tag means async multithreaded mode
Expand Down Expand Up @@ -108,9 +108,9 @@ model = load_model()
agent = edgeml.ActionClient('localhost', 6379, task_id='mnist', config=agent_config)

for _ in range(100):
observation = agent.get_observation()
observation = agent.obs()
prediction = model.predict(observation)
agent.send_action(prediction)
agent.act("send", prediction)
```

**Edge device as server**
Expand Down Expand Up @@ -213,6 +213,7 @@ while True:
python3 edgeml/tests/test_action.py
python3 edgeml/tests/test_inference.py
python3 edgeml/tests/test_trainer.py
python3 edgeml/tests/test_tfds.py

# Run all tests
python3 edgeml/tests/test_all.py
Expand Down
3 changes: 3 additions & 0 deletions edgeml/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import data
from . import internal
from . import zmq_wrapper
Empty file added edgeml/data/__init__.py
Empty file.
Empty file added edgeml/internal/__init__.py
Empty file.
Empty file added edgeml/zmq_wrapper/__init__.py
Empty file.
Loading