release code
This commit is contained in:
17
Dassl.ProGrad.pytorch/dassl/modeling/backbone/backbone.py
Normal file
17
Dassl.ProGrad.pytorch/dassl/modeling/backbone/backbone.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import torch.nn as nn
|
||||
|
||||
|
||||
class Backbone(nn.Module):
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
||||
def forward(self):
|
||||
pass
|
||||
|
||||
@property
|
||||
def out_features(self):
|
||||
"""Output feature dimension."""
|
||||
if self.__dict__.get("_out_features") is None:
|
||||
return None
|
||||
return self._out_features
|
||||
Reference in New Issue
Block a user