changed to tensor again

This commit is contained in:
stuart committed 2025-12-09 18:05:37 +01:00
1 parent cbcb086310
commit a9eea64878
1 file changed
+2 -1
+2 -1
View File
@@ -3,9 +3,10 @@ from dataclasses import dataclass
import numpy as np
from pydantic_tensor import Tensor
import torch
from typing import Any, Literal
@dataclass(frozen=True)
class Embedding:
data: Tensor[torch.Tensor]
data: Tensor[torch.Tensor | np.ndarray[Any, Any], Literal["int32", "int64"]]