mirror of
https://github.com/clearml/clearml-serving
synced 2025-02-11 23:23:49 +00:00
Fix bug where custom buckets are not passed through correctly
This commit is contained in:
parent
c51e2d402e
commit
dfe620eafc
@ -323,7 +323,7 @@ class StatisticsController(object):
|
|||||||
metric_cls = self._metric_type_class.get(metric_.type)
|
metric_cls = self._metric_type_class.get(metric_.type)
|
||||||
if not metric_cls:
|
if not metric_cls:
|
||||||
return None
|
return None
|
||||||
if metric_cls in (Histogram, EnumHistogram):
|
if metric_cls in (ScalarHistogram, EnumHistogram):
|
||||||
return metric_cls(
|
return metric_cls(
|
||||||
name=name,
|
name=name,
|
||||||
documentation="User defined metric {}".format(metric_.type),
|
documentation="User defined metric {}".format(metric_.type),
|
||||||
|
Loading…
Reference in New Issue
Block a user