-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Set size
when is_coalesced
is set in torch.sparse_coo_tensor()
#145371
New issue
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
Comments
I suggest that the behavior of unspecified
ought to be extended with |
@pearu Oh sure, thanks. Yet I thought except this, may the binding relationship between |
@yinxinyang100 , |
@pearu , I see, so by extending the first signature with |
@pearu PR opened here, thanks! |
Uh oh!
There was an error while loading. Please reload this page.
📚 The doc issue
The doc of torch.sparse_coo_tensor() shows its
Parameters
/Keyword Arguments
as below:But when
is_coalesced
is set, whether it is None/True/False/...,size
must be set properly, but document isn't noted or warned.Repro
Outputs
Suggest a potential alternative/fix
So, a
Note
/Warning
should be added to the doc of torch.sparse_coo_tensor() as shown below:cc @alexsamardzic @nikitaved @pearu @cpuhrsch @amjames @bhosmer @jcaip @svekars @brycebortree @sekyondaMeta @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
The text was updated successfully, but these errors were encountered: