Skip to content

Commit

Permalink
rtdl.data | fix piecewise_linear_encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Yura52 committed Aug 9, 2023
1 parent 7929497 commit 60ae981
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion rtdl/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ def piecewise_linear_encoding(
X_ple = piecewise_linear_encoding(bin_edges, bin_indices, bin_ratios, bin_counts, stack=True)
"""
is_torch = isinstance(bin_ratios, Tensor)
bin_edges = torch.as_tensor(bin_edges)
bin_ratios = torch.as_tensor(bin_ratios)
bin_indices = torch.as_tensor(bin_indices)

Expand Down

0 comments on commit 60ae981

Please sign in to comment.