Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make FusedLayerNorm cpu compatible #239

@LamDang

Description

@LamDang

Hello,

I hit an issue with FusedLayerNorm raising error when using cpu only.
RuntimeError: input must be a CUDA tensor (layer_norm_affine at csrc/layer_norm_cuda.cp:148)

The use case is either:

  • Run some unit test in cpu
  • Load model in cpu for inference

The issue is already reported here but personally I think it would make more sense for apex to make sure the Modules works on both cpu and gpu.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions