You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[compute] Explicitly initialize dims_ in constructors to avoid uninitialized warnings
This commit explicitly initialize dims_ in Shape constructors to avoid uninitialized warnings.
- Set dims_ using std::array or std::vector in the (int, int32_t), (int, const int32_t*),
and initializer-list constructors to ensure proper initialization before calling Resize().
- Added a check in Resize() using dims_.valueless_by_exception() to handle any uninitialized state.
ONE-DCO-1.0-Signed-off-by: ragmani <ragmani0216@gmail.com>
0 commit comments