NVIDIA / NVIDIA/apex

ModuleNotFoundError: No module named 'fused_layer_norm_cuda'

Open
#499 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9k
Forks
1.5k
Avg merge
2d 4h
Merged PRs (30d)
3

Description

When I am trying to use apex on server, an error occurred
ubuntu 16.04
python 3.7
pytorch 0.4.1
GPU V100
cuda 9.0
cudnn 7.1.2

def __init__(self, normalized_shape, eps=1e-5, elementwise_affine=True):
super(FusedLayerNorm, self).__init__()
global fused_layer_norm_cuda
fused_layer_norm_cuda= importlib.import_module("fused_layer_norm_cuda")

ModuleNotFoundError: No module named 'fused_layer_norm_cuda'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the FusedLayerNorm.init entry point and the importlib.import_module("fused_layer_norm_cuda") call shown in the report. Reproduce the failure with the listed Ubuntu, Python, PyTorch, GPU, CUDA, and cuDNN versions, then inspect how the Apex installation provides this module. Done means FusedLayerNorm imports without ModuleNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch, ubuntu
Domain
machine-learning, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.