Skip to content

Fix OOB centernet_hg104 benchmark issue#369

Merged
chensuyue merged 6 commits intomasterfrom
lvl/ILITV-2583
Dec 30, 2022
Merged

Fix OOB centernet_hg104 benchmark issue#369
chensuyue merged 6 commits intomasterfrom
lvl/ILITV-2583

Conversation

@lvliang-intel
Copy link
Copy Markdown
Contributor

Signed-off-by: Lv, Liang1 liang1.lv@intel.com

Type of Change

bug fix
API not changed

Description

detail description
JIRA ticket: ILITV-2583
[release2nd][tf2.11.0] centernet_hg104 failed with InvalidArgumentError

Expected Behavior & Potential Risk

OOB centernet_hg104 benchmark issue can be fixed.

How has this PR been tested?

UT, pre-CI and OOB extension test.

Dependency Change?

No.

Signed-off-by: Lv, Liang1 <liang1.lv@intel.com>
@chensuyue chensuyue added the bug fix Something isn't working label Dec 28, 2022
@ronggegu
Copy link
Copy Markdown
Contributor

…nto lvl/ILITV-2583

Signed-off-by: Lv, Liang1 <liang1.lv@intel.com>
Signed-off-by: Lv, Liang1 <liang1.lv@intel.com>
…nto lvl/ILITV-2583

Signed-off-by: Lv, Liang1 <liang1.lv@intel.com>
Signed-off-by: Lv, Liang1 <liang1.lv@intel.com>
@lvliang-intel
Copy link
Copy Markdown
Contributor Author

Signed-off-by: Lv, Liang1 <liang1.lv@intel.com>
@chensuyue chensuyue added this to the v2.1 milestone Dec 29, 2022
@chensuyue chensuyue merged commit 7a39c86 into master Dec 30, 2022
@chensuyue chensuyue deleted the lvl/ILITV-2583 branch December 30, 2022 05:35
VincyZhang pushed a commit that referenced this pull request Feb 12, 2023
yiliu30 pushed a commit that referenced this pull request Mar 12, 2026
* Fix all 96 Coverity CIDs across 40 files

CWE-476: Null pointer dereference fixes (null checks, variable initialization)
CWE-328: Weak hash algorithm (sha1 -> sha256)
CWE-561: Dead code removal (unreachable code, dead assignments)
CWE-398: Code quality (bare except, unused imports, resource handling)
CWE-532: Information exposure through log files (sanitize logging)
CWE-688: Function call with incorrect variable (fix parameter shadowing)

* Coverity-related fixes in 27 existing files (no new files).

* Replace coverity asserts with logger.error and revert behavior changes

- Replace 4 added asserts with logger.error in coco.py, test_pt2e_quant.py, test_pruning.py
- Revert use_cuda, recipe_cfgs default, strategy deepcopy, textual_inversion flow,
  teacher_model guard, pt2e utility var, static_quant timing, self_distillation log,
  inc_dataset_loader error handling, pruneOFA/glueOFA renames, distillation prints
- Keep all legitimate Coverity fixes (null checks, hash upgrades, resource leaks, etc.)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Restore min_max variable removed incorrectly by coverity fix

The variable is used on lines 147 and 154 - removing it breaks quantization.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Revert fuse_qdq_conv to use new_match_node_name with init protection

Initialize new_match_node_name = match_node_name before the if block
so the original new_match_node_name[-1] usage is preserved.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Restore config = AutoConfig.from_pretrained() in gpt-j/main.py

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Replace print with logger.error for stats None check

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix missing else branch in textual_inversion.py verify_loading

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add None guard for recipe_cfgs before .get() call

Keeps default as None (original behavior) but prevents AttributeError.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
xin3he pushed a commit that referenced this pull request Mar 31, 2026
* Fix all 96 Coverity CIDs across 40 files

CWE-476: Null pointer dereference fixes (null checks, variable initialization)
CWE-328: Weak hash algorithm (sha1 -> sha256)
CWE-561: Dead code removal (unreachable code, dead assignments)
CWE-398: Code quality (bare except, unused imports, resource handling)
CWE-532: Information exposure through log files (sanitize logging)
CWE-688: Function call with incorrect variable (fix parameter shadowing)

* Coverity-related fixes in 27 existing files (no new files).

* Replace coverity asserts with logger.error and revert behavior changes

- Replace 4 added asserts with logger.error in coco.py, test_pt2e_quant.py, test_pruning.py
- Revert use_cuda, recipe_cfgs default, strategy deepcopy, textual_inversion flow,
  teacher_model guard, pt2e utility var, static_quant timing, self_distillation log,
  inc_dataset_loader error handling, pruneOFA/glueOFA renames, distillation prints
- Keep all legitimate Coverity fixes (null checks, hash upgrades, resource leaks, etc.)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Restore min_max variable removed incorrectly by coverity fix

The variable is used on lines 147 and 154 - removing it breaks quantization.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Revert fuse_qdq_conv to use new_match_node_name with init protection

Initialize new_match_node_name = match_node_name before the if block
so the original new_match_node_name[-1] usage is preserved.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Restore config = AutoConfig.from_pretrained() in gpt-j/main.py

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Replace print with logger.error for stats None check

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix missing else branch in textual_inversion.py verify_loading

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add None guard for recipe_cfgs before .get() call

Keeps default as None (original behavior) but prevents AttributeError.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: xinhe3 <xinhe3@habana.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants