Download flow_matching/solver/solver.py from ChatterjeeLab/pCoMole: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/ChatterjeeLab/pCoMole/resolve/main/flow_matching/solver/solver.py
- Command line
-
hf download hf://ChatterjeeLab/pCoMole/flow_matching/solver/solver.py
-
curl -L -o solver.py https://huggingface.co/ChatterjeeLab/pCoMole/resolve/main/flow_matching/solver/solver.py
434 Bytes
| # 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.""" | |
| def sample(self, x_0: Tensor = None) -> Tensor: | |
| ... | |