Skip to content

Commit

Permalink
Fix PyTorch quantile
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Feb 1, 2024
1 parent b0f4a7c commit 8e0f661
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions phiml/backend/torch/_torch_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ def all(self, boolean_tensor, axis=None, keepdims=False):

def quantile(self, x, quantiles):
x = self.to_float(x)
quantiles = self.to_float(quantiles)
result = torch.quantile(x, quantiles, dim=-1)
return result

Expand Down

0 comments on commit 8e0f661

Please sign in to comment.