Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ModalityDance/Omni-R1
/ ModelOutputTest
Class
ModelOutputTest
src/transformers/tests/utils/test_model_output.py:33–36 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
31
32
@dataclass
33
class
ModelOutputTest(ModelOutput):
34
a: float
35
b: Optional[float] = None
36
c: Optional[float] = None
37
38
39
class
ModelOutputTester(unittest.TestCase):
Callers
9
test_get_attributes
Method · 0.85
test_index_with_ints_and_slices
Method · 0.85
test_index_with_strings
Method · 0.85
test_dict_like_properties
Method · 0.85
test_set_attributes
Method · 0.85
test_set_keys
Method · 0.85
test_instantiate_from_dict
Method · 0.85
test_instantiate_from_iterator
Method · 0.85
test_torch_pytree
Method · 0.85
Calls
no outgoing calls
Tested by
9
test_get_attributes
Method · 0.68
test_index_with_ints_and_slices
Method · 0.68
test_index_with_strings
Method · 0.68
test_dict_like_properties
Method · 0.68
test_set_attributes
Method · 0.68
test_set_keys
Method · 0.68
test_instantiate_from_dict
Method · 0.68
test_instantiate_from_iterator
Method · 0.68
test_torch_pytree
Method · 0.68