Skip to content

CPU and GPU gave different results #464

Open

Description

@hainguyenct

Hello everyone,
I received different results when I tried to train with GPU and CPU.
For using CPU, I got accuracy of 87% while GPU got 82%. Does anyone has met this situation?
Thank you,

Activity

  1. elgalu commented on Mar 4, 2019

    @elgalu

    Can you double check?

    • all training data is identical
    • all stochastic parts of training use the same random seed and generator
    • all data types are identical precision (e.g. all vectors and matrices are 32-bit or 64-bit floats)

    It could be a difference in the execution order of the parallelizable operations following floating point error propagation:
    https://discuss.pytorch.org/t/why-different-results-when-multiplying-in-cpu-than-in-gpu/1356/4

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