(a: torch.Tensor, shape: Tuple[int, ...], dtype: Optional[torch.dtype] = None)
| 7 | |
| 8 | |
| 9 | def validate_tensor(a: torch.Tensor, shape: Tuple[int, ...], dtype: Optional[torch.dtype] = None) -> None: |
| 10 | assert isinstance(a, torch.Tensor) |
| 11 | assert a.shape == shape |
| 12 | |
| 13 | if dtype is not None: |
| 14 | assert a.dtype == dtype |
| 15 | |
| 16 | |
| 17 | def create_df(series_ids=["A", "B"], n_points=[10, 10], target_cols=["target"], covariates=None, freq="h"): |
no outgoing calls