mirror of https://github.com/PyRetri/PyRetri.git
18 lines
315 B
Python
18 lines
315 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
import torch
|
||
|
import torch.nn as nn
|
||
|
|
||
|
from ..registry import BACKBONES
|
||
|
|
||
|
|
||
|
class BackboneBase(nn.Module):
|
||
|
"""
|
||
|
The base class of backbone.
|
||
|
"""
|
||
|
def __init__(self):
|
||
|
super(BackboneBase, self).__init__()
|
||
|
|
||
|
def _forward(self, x: torch.tensor) -> torch.tensor:
|
||
|
pass
|