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

Boolean value of Tensor with more than one value is ambiguous #197

Open
ljhOfGithub opened this issue Oct 11, 2023 · 0 comments
Open

Boolean value of Tensor with more than one value is ambiguous #197

ljhOfGithub opened this issue Oct 11, 2023 · 0 comments

Comments

@ljhOfGithub
Copy link

the following is my forward:forward(self,pos_fea,subtype,channels),where channels is a parameter of torch.Tensor,and its shape is torch.Size([1]).In the forward,there is a sentence to judge the value of channels:if channels == 2048.
When I use summary(model, [(512,1024,2048),(1,2048),[2048]]) I got the above error,how should I use the summary function to get my expected results?

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

1 participant