AlienChen's picture
Upload 72 files
3527383 verified
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the CC-by-NC license found in the
# LICENSE file in the root directory of this source tree.
from abc import ABC, abstractmethod
from torch import nn, Tensor
class Solver(ABC, nn.Module):
"""Abstract base class for solvers."""
@abstractmethod
def sample(self, x_0: Tensor = None) -> Tensor:
...