Skip to content
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

TypeError: forward() takes 6 positional arguments but 9 were given(maybe something wrong with the source codes? #184

Open
Milkshade opened this issue Sep 4, 2023 · 1 comment

Comments

@Milkshade
Copy link

here seems a mistake in the /softgroup/ops/functions.py , in line 265 have a line
nActive = ops.ballquery_batch_p(coords, batch_idxs, batch_offsets, idx, start_len, n,
meanActive, radius)
but the forward function class BallQueryBatchP(Function):
@staticmethod
def forward(ctx, coords, batch_idxs, batch_offsets, radius, meanActive):
only have 6 inputs, when i run the codes , there appears a mistake:TypeError: forward() takes 6 positional arguments but 9 were given

@Milkshade Milkshade changed the title TypeError: forward() takes 6 positional arguments but 9 were given(maybe something wrong with the source codes TypeError: forward() takes 6 positional arguments but 9 were given(maybe something wrong with the source codes? Sep 4, 2023
@thangvubk
Copy link
Owner

ops.ballquery_batch_p is the cuda function and the argument is listed in here

int ballquery_batch_p(at::Tensor xyz_tensor, at::Tensor batch_idxs_tensor,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants