mirror of
https://github.com/luxfi/onnx-source-snapshot.git
synced 2026-10-30 15:23:38 +00:00
30 lines
625 B
Python
30 lines
625 B
Python
# Copyright (c) ONNX Project Contributors
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
from typing import TYPE_CHECKING
|
|
|
|
if TYPE_CHECKING:
|
|
from collections.abc import Sequence
|
|
|
|
import numpy as np
|
|
|
|
import onnx
|
|
|
|
|
|
@dataclass
|
|
class TestCase:
|
|
name: str
|
|
model_name: str
|
|
url: str | None
|
|
model_dir: str | None
|
|
model: onnx.ModelProto | None
|
|
data_sets: Sequence[tuple[Sequence[np.ndarray], Sequence[np.ndarray]]] | None
|
|
kind: str
|
|
rtol: float
|
|
atol: float
|
|
# Tell PyTest this isn't a real test.
|
|
__test__: bool = False
|