Skip to content

Commit bde134a

Browse files
committed
Add warning to ignored list
Try to avoid throwing warning Fix linting, try verbosity filter Try adding to ignore file Remove fix attempts
1 parent 95676f2 commit bde134a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

gallery/how_to/work_with_microtvm/micro_train.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@
370370
# the conversion. By default, TFLite keeps the inputs and outputs of our model as floats, so we must
371371
# explicitly tell it to avoid this behavior.
372372

373+
373374
def representative_dataset():
374375
for image_batch, label_batch in full_dataset.take(10):
375376
yield [image_batch]
@@ -563,6 +564,8 @@ def representative_dataset():
563564

564565
shutil.rmtree(f"{FOLDER}/models/project/build", ignore_errors=True)
565566
# sphinx_gallery_start_ignore
567+
from unittest.mock import MagicMock
568+
566569
arduino_project = MagicMock()
567570
# sphinx_gallery_end_ignore
568571
arduino_project.build()

tests/scripts/task_python_docs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ IGNORED_WARNINGS=(
8484
'autotvm:Cannot find config for target=llvm -keys=cpu -link-params=0'
8585
'autotvm:One or more operators have not been tuned. Please tune your model for better performance. Use DEBUG logging level to see more details.'
8686
'autotvm:Cannot find config for target=cuda -keys=cuda,gpu'
87+
'absl:For model inputs containing unsupported operations'
8788
)
8889

8990
JOINED_WARNINGS=$(join_by '|' "${IGNORED_WARNINGS[@]}")

0 commit comments

Comments
 (0)