mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 18:06:25 +08:00
[RLlib] Atari-RAM-Preprocessing, unsigned observation vector results in a false preprocessed observation (#13013)
This commit is contained in:
@@ -140,7 +140,7 @@ class AtariRamPreprocessor(Preprocessor):
|
||||
@override(Preprocessor)
|
||||
def transform(self, observation: TensorType) -> np.ndarray:
|
||||
self.check_shape(observation)
|
||||
return (observation - 128) / 128
|
||||
return (observation.astype("float32") - 128) / 128
|
||||
|
||||
|
||||
class OneHotPreprocessor(Preprocessor):
|
||||
|
||||
Reference in New Issue
Block a user