Skip to content

Commit

Permalink
remove unnecesssary check
Browse files Browse the repository at this point in the history
  • Loading branch information
yatbear committed Sep 12, 2023
1 parent 17ad5af commit df4fa31
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tensorboard/plugins/hparams/backend_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,7 @@ def _compute_hparam_info_from_values(self, name, values):

if result.type == api_pb2.DATA_TYPE_FLOAT64:
# Always uses interval domain type for numeric hparam values.
distinct_float_values = sorted(
[v.number_value for v in values if v.HasField("number_value")]
)
distinct_float_values = sorted([v.number_value for v in values])
if distinct_float_values:
result.domain_interval.min_value = distinct_float_values[0]
result.domain_interval.max_value = distinct_float_values[-1]
Expand Down

0 comments on commit df4fa31

Please sign in to comment.