Skip to content

Commit 78dd978

Browse files
committed
complete
1 parent 3f9dbdd commit 78dd978

File tree

7 files changed

+14
-13
lines changed

7 files changed

+14
-13
lines changed

_doc/api/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ API of onnx_diagnostic
1010
export/index
1111
helpers/index
1212
reference/index
13+
tasks/index
1314
torch_export_patches/index
1415
torch_models/index
1516
torch_onnx/index
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
onnx_diagnostic.export.automatic_speech_generation
3-
==================================================
2+
onnx_diagnostic.export.automatic_speech_recognition
3+
===================================================
44

5-
.. automodule:: onnx_diagnostic.tasks.automatic_speech_generation
5+
.. automodule:: onnx_diagnostic.tasks.automatic_speech_recognition
66
:members:
77
:no-undoc-members:

_doc/api/tasks/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ onnx_diagnostic.tasks
55
:maxdepth: 1
66
:caption: modules
77

8-
automatic_speech_generation
8+
automatic_speech_recognition
99
fill_mask
1010
image_classification
1111
image_text_to_text
1212
text_generation
1313
text2text_generation
14-
zero_short_image_classification
14+
zero_shot_image_classification
1515

1616
reduce_model_config
1717
+++++++++++++++++++
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
onnx_diagnostic.export.zero_short_image_classification
3-
======================================================
2+
onnx_diagnostic.export.zero_shot_image_classification
3+
=====================================================
44

5-
.. automodule:: onnx_diagnostic.tasks.zero_short_image_classification
5+
.. automodule:: onnx_diagnostic.tasks.zero_shot_image_classification
66
:members:
77
:no-undoc-members:

_unittests/ut_tasks/test_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_fill_mask(self):
9696
mid = "google-bert/bert-base-multilingual-cased"
9797
# mid = "Salesforce/codet5-small"
9898
data = get_untrained_model_with_inputs(mid, verbose=1)
99-
self.assertIn((data["size"], data["n_weights"]), [(12742888, 3185722)])
99+
self.assertIn((data["size"], data["n_weights"]), [(428383212, 107095803)])
100100
model, inputs = data["model"], data["inputs"]
101101
model(**inputs)
102102

_unittests/ut_torch_models/test_hghub_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_hf_all_models(self):
100100

101101
def test_load_architecture_task(self):
102102
data = load_architecture_task()
103-
print(set(data.values()))
103+
self.assertNotEmpty(set(data.values()))
104104

105105
def test_task_from_tags(self):
106106
_tags = [
@@ -132,10 +132,10 @@ def test_model_testings_and_architectures(self):
132132

133133
def test__ccached_config_64(self):
134134
from onnx_diagnostic.torch_models.hghub.hub_data_cached_configs import (
135-
_cached_hf_internal_testing_tiny_random_beitforimageclassification,
135+
_ccached_hf_internal_testing_tiny_random_beitforimageclassification,
136136
)
137137

138-
conf = _cached_hf_internal_testing_tiny_random_beitforimageclassification()
138+
conf = _ccached_hf_internal_testing_tiny_random_beitforimageclassification()
139139
self.assertEqual(conf.auxiliary_channels, 256)
140140

141141

onnx_diagnostic/tasks/zero_shot_image_classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import torch
33
from ..helpers.config_helper import update_config, check_hasattr
44

5-
__TASK__ = "zero-shot-image-generation"
5+
__TASK__ = "zero-shot-image-classification"
66

77

88
def reduce_model_config(config: Any, task: str) -> Dict[str, Any]:

0 commit comments

Comments
 (0)