Skip to content

Hotfix the default backend issue

Benjamin Halimi requested to merge fix_backend into dev

Description

Previous policy regarding the backend management in the PTQ was to set the new nodes backends to their parent ones.

While it looks like a valid approach, it has two caveats :

  • Firstly, the parent may not have any backend (like for example the Concat nodes) which causes a registrar issue.
  • Secondly, the whole graphView backend is overwritten multiple times in the PTQ pipeline so the information about the original parent backend is in fact lost.

In absence of a better solution, we propose (for now) to set the new nodes backends to cpu by default, and to overwrite the whole graphView backend if useCuda is set to true.

Merge request reports

Loading