Comments (4)
@albertbou92, oh I got you wrong. I mean it's clean to use rb[:], I agree. But I don't think it's a way that anyone will naturally figure out(and it should be called with buffer._replay_lock
). Also, TensorStorage.set() seems like a usable method, but it doesn't actually act as expected, which may confuse others who use it.
from rl.
It does not solve much but rb._storage._storage
is the same as rb[:]
.
Is a bit more intuitive and clean (maybe you could call update()
on rb[:][info["index"]]
)
from rl.
@albertbou92 yes, I use rb._storage._storage['key'][index_list]
in practice.
from rl.
right, makes sense!
from rl.
Related Issues (20)
- [BUG] Potential Thread Safety Issue with PrioritizedSliceSampler and Prefetching
- Not knowing Which key is causing shape mismatch HOT 3
- [BUG] Unexpected behavior of SumSegmentTree Resulting in Invalid Slices in PrioritizedSliceSampler.sample() HOT 3
- [BUG/QUESTION] Dimensionality Problem with Basic Module Setup despite successful check_env_specs HOT 2
- [Bug] With `MultiSyncDataCollector`, `tensors` cannot be instantiated on CUDA in child processes. HOT 2
- [BUG] `check_env_specs` + `PixelRenderTransform` does not tolerate "cuda" device
- [Question] Only Windows distribution when version>=2024.6.24 HOT 1
- [BUG] `EnvBase.step_and_maybe_reset(td)` modifies the ('next','observation') data too on partial reset with`NonTensorStack` HOT 1
- [Feature Request] Allow custom video settings to be passed into `CSVExperiment.add_video` HOT 1
- [BUG] Error reloading a non-initialised buffer HOT 5
- [BUG] A2C fails with functional=True and shifted=True for ValueEstimator HOT 5
- [Feature Request] Support for distributional-DQNalgorithms (C51, Rainbow) HOT 2
- [Feature Request] multi-turn reward for RLHF HOT 1
- [Feature Request] Support Card-Game Environment HOT 2
- [BUG] ParallelEnv + MeltingPot HOT 2
- [Feature Request] Document masks in tensor specs HOT 1
- [BUG] `_complete_done` always sets missing terminated to `False`
- [BUG] Failing to Create Isaac Gym Environments
- Convert `TensorDictModuleWrapper`s to `TensorDictModule`s
- can't run any scenario HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rl.