We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sample
num_samples
Need several tests for num_samples:
num_samples = 3
int
num_samples = 3.0
num_samples = 3.1
num_samples = torch.tensor(3)
num_samples = torch.tensor([3])
num_samples = torch.tensor(3.0)
num_samples = torch.tensor([3.0])
num_samples = None
num_samples = -3
num_samples = "a"
num_samples = [3, 4, 5]
We check that the output either "fails gracefully" with an informative error message, or warns us that it has converted to an int.
The text was updated successfully, but these errors were encountered:
Simplest solution: throw an informative error if input to num_samples is not a positive int.
Sorry, something went wrong.
ShantMahserejian
sabinala
Successfully merging a pull request may close this issue.
Need several tests for
num_samples
:num_samples = 3
as anint
num_samples = 3.0
as a 'float`num_samples = 3.1
as a 'float`num_samples = torch.tensor(3)
as tensornum_samples = torch.tensor([3])
as tensornum_samples = torch.tensor(3.0)
as tensornum_samples = torch.tensor([3.0])
as tensornum_samples = None
num_samples = -3
num_samples = "a"
num_samples = [3, 4, 5]
as an arrayWe check that the output either "fails gracefully" with an informative error message, or warns us that it has converted to an
int
.The text was updated successfully, but these errors were encountered: