1
This commit is contained in:
20
trellis/pipelines/samplers/base.py
Normal file
20
trellis/pipelines/samplers/base.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from typing import *
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class Sampler(ABC):
|
||||
"""
|
||||
A base class for samplers.
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def sample(
|
||||
self,
|
||||
model,
|
||||
**kwargs
|
||||
):
|
||||
"""
|
||||
Sample from a model.
|
||||
"""
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user