mirror of
https://github.com/wassname/ray.git
synced 2026-09-11 12:43:20 +08:00
[rllib] Flexible multi-agent replay modes and replay_sequence_length (#8893)
This commit is contained in:
@@ -33,7 +33,7 @@ def _summarize(obj):
|
||||
if obj.size == 0:
|
||||
return _StringValue("np.ndarray({}, dtype={})".format(
|
||||
obj.shape, obj.dtype))
|
||||
elif obj.dtype == np.object:
|
||||
elif obj.dtype == np.object or obj.dtype.type is np.str_:
|
||||
return _StringValue("np.ndarray({}, dtype={}, head={})".format(
|
||||
obj.shape, obj.dtype, _summarize(obj[0])))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user