-
Notifications
You must be signed in to change notification settings - Fork 317
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
problem with tensor's view? #2
Comments
Since I do not get the error on my computer, I have no idea why the error occurred. |
@chickenbestlover The fix worked for me. Thank you! |
Me as well. Thanks.
…On Mon, Jun 25, 2018, 4:25 AM jcardenaslie ***@***.***> wrote:
@chickenbestlover <https://github.com/chickenbestlover> The fix worked
for me. Thank you!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACKCxclsooDwlo36c-CcuGfeMLiAog0Fks5uAJ6MgaJpZM4UxRno>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am attempting to run the following:
<python 1_train_predictor.py --data nyc_taxi --filename nyc_taxi.pkl
Here is the traceback:
Traceback (most recent call last): File "1_train_predictor.py", line 322, in <module> train(args,model,train_dataset,epoch) File "1_train_predictor.py", line 230, in train loss1 = criterion(outSeq1.view(args.batch_size,-1), targetSeq.view(args.batch_size,-1)) RuntimeError: invalid argument 2: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Call .contiguous() before .view(). at /Users/soumith/code/builder/wheel/pytorch-src/aten/src/TH/generic/THTensor.cpp:280
Any ideas?
The text was updated successfully, but these errors were encountered: