Source code for torchsample.encoding.oop
from abc import ABC, abstractmethod
from torch import nn
from .functional import gamma, identity, nearest_pixel
class _OOPWrapper(nn.Module, ABC):
def __init__(self, **kwargs):
super().__init__()
self.kwargs = kwargs
@abstractmethod
def forward(self, coords):
pass