Browse Source

[format] applied code formatting on changed files in pull request 4021 (#4022)

Co-authored-by: github-actions <github-actions@github.com>
pull/4033/head
github-actions[bot] 1 year ago committed by GitHub
parent
commit
a52f62082d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      colossalai/nn/layer/base_layer.py
  2. 3
      tests/test_device/test_device_mesh.py

3
colossalai/nn/layer/base_layer.py

@ -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):

3
tests/test_device/test_device_mesh.py

@ -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)

Loading…
Cancel
Save