Refine lib -> xautodl
This commit is contained in:
		| @@ -8,7 +8,7 @@ import torch.nn.functional as F | ||||
| import math | ||||
| from typing import Optional, Callable | ||||
|  | ||||
| import spaces | ||||
| from xautodl import spaces | ||||
| from .super_module import SuperModule | ||||
| from .super_module import IntSpaceType | ||||
| from .super_module import BoolSpaceType | ||||
|   | ||||
| @@ -13,7 +13,7 @@ import torch.nn as nn | ||||
| import torch.nn.functional as F | ||||
|  | ||||
|  | ||||
| import spaces | ||||
| from xautodl import spaces | ||||
| from .super_module import SuperModule | ||||
| from .super_module import IntSpaceType | ||||
| from .super_module import BoolSpaceType | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import operator | ||||
| from collections import OrderedDict | ||||
| from typing import Optional, Union, Callable, TypeVar, Iterator | ||||
|  | ||||
| import spaces | ||||
| from xautodl import spaces | ||||
| from .super_module import SuperModule | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import torch.nn.functional as F | ||||
| import math | ||||
| from typing import Optional, Callable, Tuple | ||||
|  | ||||
| import spaces | ||||
| from xautodl import spaces | ||||
| from .super_module import SuperModule | ||||
| from .super_module import IntSpaceType | ||||
| from .super_module import BoolSpaceType | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import torch.nn.functional as F | ||||
| import math | ||||
| from typing import Optional, Callable | ||||
|  | ||||
| import spaces | ||||
| from xautodl import spaces | ||||
| from .super_module import SuperModule | ||||
| from .super_module import IntSpaceType | ||||
| from .super_module import BoolSpaceType | ||||
|   | ||||
| @@ -12,8 +12,7 @@ import torch | ||||
| import torch.nn as nn | ||||
| from enum import Enum | ||||
|  | ||||
| import spaces | ||||
|  | ||||
| import xautodl.spaces | ||||
| from .super_utils import IntSpaceType, BoolSpaceType | ||||
| from .super_utils import LayerOrder, SuperRunMode | ||||
| from .super_utils import TensorContainer | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import torch.nn.functional as F | ||||
| import math | ||||
| from typing import Optional, Callable | ||||
|  | ||||
| import spaces | ||||
| from xautodl import spaces | ||||
| from .super_module import SuperModule | ||||
| from .super_module import IntSpaceType | ||||
| from .super_module import BoolSpaceType | ||||
|   | ||||
| @@ -5,7 +5,7 @@ import torch | ||||
| import torch.nn as nn | ||||
| import math | ||||
|  | ||||
| import spaces | ||||
| from xautodl import spaces | ||||
| from .super_module import SuperModule | ||||
| from .super_module import IntSpaceType | ||||
|  | ||||
|   | ||||
| @@ -12,7 +12,7 @@ import torch | ||||
| import torch.nn as nn | ||||
| import torch.nn.functional as F | ||||
|  | ||||
| import spaces | ||||
| from xautodl import spaces | ||||
| from .super_linear import SuperLinear | ||||
| from .super_module import SuperModule | ||||
| from .super_module import IntSpaceType | ||||
|   | ||||
| @@ -12,7 +12,7 @@ import torch | ||||
| import torch.nn as nn | ||||
| import torch.nn.functional as F | ||||
|  | ||||
| import spaces | ||||
| from xautodl import spaces | ||||
| from .super_module import IntSpaceType | ||||
| from .super_module import BoolSpaceType | ||||
| from .super_module import LayerOrder | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import torch | ||||
| import torch.nn as nn | ||||
| from enum import Enum | ||||
|  | ||||
| import spaces | ||||
| from xautodl import spaces | ||||
|  | ||||
| IntSpaceType = Union[int, spaces.Integer, spaces.Categorical] | ||||
| BoolSpaceType = Union[bool, spaces.Categorical] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user