Files
DZGCoOp/Dassl.ProGrad.pytorch/dassl/modeling/backbone/backbone.py
T
Rain-BusandClaude Opus 4.7 5027694a2b release code
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-10-12 22:30:08 +08:00

18 lines
336 B
Python

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