File size: 504 Bytes
079c32c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from collections import namedtuple


class FakeClass:
    """
    Overview:
        Fake class.
    """

    def __init__(self, *args, **kwargs):
        pass


class FakeNN:
    """
    Overview:
        Fake nn class.
    """

    SyncBatchNorm2d = FakeClass


class FakeLink:
    """
    Overview:
        Fake link class.
    """

    nn = FakeNN()
    syncbnVarMode_t = namedtuple("syncbnVarMode_t", "L2")(L2=None)
    allreduceOp_t = namedtuple("allreduceOp_t", ['Sum', 'Max'])


link = FakeLink()