Skip to content

Add tools ReplayBuffer for TorchRL via patch_object #497

@k82cn

Description

@k82cn

Motivation

Currently, we only provide raw operation about object in Flame. But there're still several common tools for 3rd part libarary, e.g. ReplayBuffer in TorchRL. This feature will add a modle, named flamepy.tools, to support those libraries; the first tool is ReplayBuffer for TorchRL.

Function Specification

  1. Add flamepy.tools model in py sdk
  2. Add ReplayBuffer for TorchRL
  3. Add example of ReplayBuffer to show the differentiation

Solutions

  1. Based on patch_object to support multi client updated
  2. Support different py type of object via generic in Py
  3. Update the example of replay buffer accordingly

Additional context

The flamepy.tools should be well organized, as it'll include more tools for 3rd part lib. For example, we should have a torchrl sub model for ReplayBuffer of TorchRL.

Metadata

Metadata

Assignees

Labels

kind/featureNew feature or requestpriority/p1High priorityrferequest for enhancement
No fields configured for Feature.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions