Spaces:
Running
on
Zero
Running
on
Zero
File size: 355 Bytes
9e15541 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from abc import ABC, abstractmethod
from typing import Any
import torch
import torch.nn as nn
class BaseModel(ABC, nn.Module):
def __init__(self) -> None:
super().__init__()
@abstractmethod
def forward(
self, xyz: torch.Tensor, **kwargs
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor, dict[str, Any]]:
pass
|