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

Transformer inputs [batch_size, input_length, 1, hidden_dim] #1776

Open
icecream0 opened this issue Dec 28, 2019 · 2 comments
Open

Transformer inputs [batch_size, input_length, 1, hidden_dim] #1776

icecream0 opened this issue Dec 28, 2019 · 2 comments

Comments

@icecream0
Copy link

@icecream0 icecream0 commented Dec 28, 2019

Description

Transformer inputs [batch_size, input_length, 1, hidden_dim],
I want to know why inputs shape is not [batch_size, input_length, hidden_dim], have some reasons?please tell me ,thank you
...

Environment information

OS: <your answer here>

$ pip freeze | grep tensor
# your output here

$ python -V
# your output here

For bugs: reproduction and error logs

# Steps to reproduce:
...
# Error logs:
...
@martinpopel
Copy link
Contributor

@martinpopel martinpopel commented Dec 28, 2019

I think all inputs are treated as two dimensional, so the framework can generalize to images easily.

@icecream0
Copy link
Author

@icecream0 icecream0 commented Dec 29, 2019

I think all inputs are treated as two dimensional, so the framework can generalize to images easily.

maybe,thanks a lot.
transformer mainly used for nlp, so the design of framework make code reader more difficult

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.