Skip to content

Wrong result while training using GPU #402

Open

Description

@ln1equals0

Hi, we have a simple CNN network, which works fine on CPU, but since we have a new GPU installed (TITAN X), we want to train the network using GPU, but it gives us wrong results.

This is the code for training on CPU, it works fine
2016-12-21 2 17 50
2016-12-21 2 17 07
2016-12-21 2 12 26
2016-12-21 2 12 45

This is the result, I made it display the average loss every 100 iterations.
screenshot from 2016-12-21 14_06_18



So then I modified it and try to make it work on GPU, this are the changes I made

2016-12-21 2 22 01

2016-12-21 2 22 15

It is indeed much faster, but the result is totally wrong, you can see the loss of first 100 - 300 iterations became 3.4+, and it doesn't converge at all, the loss will stay at 3.3-3.4 till the end of training.
screenshot from 2016-12-21 14_05_58

Did I miss something? How can I make the training work on GPU. Thanks

Activity

  1. csxmli2016 commented on Mar 20, 2017

    @csxmli2016

    What is the result if you run test.sh in ~/torch file? Can everything pass successfully?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions