Skip to content

CUDA support #258

Description

@kalihale

When using a graphics card with CUDA support, there is an unhandled tensor error where the tensor must be moved to the CPU before converting to a numpy array.

final_gradients = [torch.zeros_like(p).numpy() for p in self._model.parameters()]

Activity

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