mirror of
https://github.com/thxxx/VTS.git
synced 2026-06-25 03:14:06 +00:00
23 lines
558 B
Python
23 lines
558 B
Python
from torch import Tensor
|
|
|
|
from torchode.typing import EvaluationTimesTensor, SolutionDataTensor, StatusTensor
|
|
|
|
|
|
class Solution:
|
|
def __init__(
|
|
self,
|
|
ts: EvaluationTimesTensor,
|
|
ys: SolutionDataTensor,
|
|
stats: dict[str, Tensor],
|
|
status: StatusTensor,
|
|
):
|
|
self.ts = ts
|
|
self.ys = ys
|
|
self.stats = stats
|
|
self.status = status
|
|
|
|
def __repr__(self):
|
|
return (
|
|
f"Solution(ts={self.ts}, ys={self.ys}, "
|
|
f"stats={self.stats}, status={self.status})"
|
|
)
|