fix: log slice as config parameter
* fix: log slice as config parameter
fix
* feat(slice): log separately start, step and end
@@ -240,6 +240,9 @@ class Config(object):
for key, value in six.iteritems(val):
converted[key] = self._sanitize_val(value)
return converted
+ if isinstance(val, slice):
+ converted = dict(slice_start=val.start, slice_step=val.step, slice_stop=val.stop)
+ return converted
val, _ = wandb.util.json_friendly(val)
if isinstance(val, Sequence) and not isinstance(val, six.string_types):
converted = []
