You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As first noticed here #1086 (comment), DeepDiff which is currently used for batch equality cannot handle 0-dimensional arrays.
My current proposal is to leverage np.atleast_1d and the newest Batch API's Batch.apply_values_transform to convert any 0-dimensional arrays to 1-d while keeping the others as they are (cf. #1086 (comment)).
The text was updated successfully, but these errors were encountered:
And thanks for hanging in there! I want to devote significantly more time to tianshou in the next weeks and months. Ideally, we'd get to better internals, an automated benchmark that reproduces the results in the docs, and generally more inviting docs and readme over the next few weeks
As first noticed here #1086 (comment), DeepDiff which is currently used for batch equality cannot handle 0-dimensional arrays.
My current proposal is to leverage
np.atleast_1d
and the newest Batch API'sBatch.apply_values_transform
to convert any 0-dimensional arrays to 1-d while keeping the others as they are (cf. #1086 (comment)).The text was updated successfully, but these errors were encountered: