Skip to content

Commit 37577ea

Browse files
Remove use of deprecated np.reshape call (#534)
The form of the call used was removed in numpy 2.4.
1 parent 2afb6f8 commit 37577ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler_opt/rl/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def _get_step_type() -> StepType:
179179
tv_dict = {}
180180
for fv in obs.feature_values:
181181
array = fv.to_numpy()
182-
tv_dict[fv.spec.name] = np.reshape(array, newshape=fv.spec.shape)
182+
tv_dict[fv.spec.name] = np.reshape(array, fv.spec.shape)
183183
return TimeStep(
184184
obs=tv_dict,
185185
reward={obs.context: obs.score} if obs.score else None,

0 commit comments

Comments
 (0)