Skip to content
Snippets Groups Projects

[Add] Possibility to create a GenericOperator from any Operator

Merged Olivier BICHLER requested to merge genericop_from_op into dev
2 unresolved threads

Context

One envisionned use-case is to be able to replace actual Operator obejcts with GenericOperator that would behave differently even regarding the size of inputs/outputs Tensors.

For example, a Conv that works on 4-bits packed data, which input/output size would be different from the standard Conv operator because of memory alignments. This would be useful for the export of sub 8-bits kernels in the Cortex-M export.

Major modifications

Add possibility to create a GenericOperator from any Operator.

  • add: toGenericOp() recipe to convert operator into GenericOperator
  • add: Operator::inputCategory() getter for input categories
  • add: comparison operator= to DynamicAttributes
  • add: GenericOperator constructor from Operator
  • add: unit-tests for toGenericOperator() recipe
  • upd: make std::array and std::pair recursively hashable in DynamicAttributes
  • upd: make almost every StaticAttributes convertible to DynamicAttributes
Edited by Maxence Naud

Merge request reports

Merge request pipeline #61408 passed

Merge request pipeline passed for 49400010

Test coverage 54.95% (0.40%) from 2 jobs

Merged by Olivier BICHLEROlivier BICHLER 4 months ago (Dec 11, 2024 7:34am UTC)

Loading

Pipeline #61411 passed

Pipeline passed for 8833a2bd on dev

Test coverage 55.00% (0.40%) from 2 jobs

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading