Skip to content

Commit

Permalink
rtdl.data | fix a typo in piecewise_linear_encoding
Browse files Browse the repository at this point in the history
close #47 #54
  • Loading branch information
Yura52 committed Aug 7, 2023
1 parent d00d89a commit 7929497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtdl/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ 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_ratios)
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 7929497

Please sign in to comment.