Skip to content

Commit 4c6cebd

Browse files
committed
doc
1 parent c30f912 commit 4c6cebd

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

CHANGELOGS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Change Logs
44
0.7.2
55
+++++
66

7+
* :pr:`165`: support for task text-to-image
78
* :pr:`162`: improves graphs rendering for historical data
89

910
0.7.1

_doc/api/tasks/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Or:
4646
summarization
4747
text_classification
4848
text_generation
49+
text_to_image
4950
text2text_generation
5051
zero_shot_image_classification
5152

_doc/api/tasks/text_to_image.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
onnx_diagnostic.tasks.text_to_image
3+
===================================
4+
5+
.. automodule:: onnx_diagnostic.tasks.text_to_image
6+
:members:
7+
:no-undoc-members:

onnx_diagnostic/tasks/text_to_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_inputs(
4141
assert (
4242
"cls_cache" not in kwargs
4343
), f"Not yet implemented for cls_cache={kwargs['cls_cache']!r}."
44-
batch = torch.export.Dim("batch", min=1, max=1024)
44+
batch = "batch"
4545
shapes = {
4646
"sample": {0: batch},
4747
"timestep": {},

onnx_diagnostic/torch_models/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def validate_model(
541541
summary["model_config"] = str(
542542
shrink_config(
543543
data["configuration"]
544-
if type(data["configuration"])
544+
if type(data["configuration"]) is dict
545545
else data["configuration"].to_dict()
546546
)
547547
).replace(" ", "")

0 commit comments

Comments
 (0)