Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion colossalai/nn/layer/base_layer.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-

from contextlib import contextmanager

import torch.nn as nn

from colossalai.context import ParallelMode
from colossalai.core import global_context as gpc
from contextlib import contextmanager


class ParallelLayer(nn.Module):
Expand Down
3 changes: 2 additions & 1 deletion tests/test_device/test_device_mesh.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from colossalai.device.device_mesh import DeviceMesh
import torch

from colossalai.device.device_mesh import DeviceMesh


def test_device_mesh():
physical_mesh_id = torch.arange(0, 16).reshape(2, 8)
Expand Down