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

How can I concatenate 2d and 3d tensors? #9

Closed
Eddie-Hwang opened this issue Dec 23, 2021 · 1 comment
Closed

How can I concatenate 2d and 3d tensors? #9

Eddie-Hwang opened this issue Dec 23, 2021 · 1 comment

Comments

@Eddie-Hwang
Copy link

Eddie-Hwang commented Dec 23, 2021

xseq = torch.cat((self.muQuery[y][None], self.sigmaQuery[y][None], x), axis=0)

This code tries to concatenate 2d and 3d tensors.
Can you explain how it works?

Thanks in advance.

@Eddie-Hwang Eddie-Hwang changed the title How can you concat between 2d and 3d tensor? How can I concatenate 2d and 3d tensors? Dec 23, 2021
@Qwinpin
Copy link

Qwinpin commented Dec 8, 2022

How did you solve that?

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