spcl / daceml

A Data-Centric Compiler for Machine Learning
https://daceml.readthedocs.io
BSD 3-Clause "New" or "Revised" License
81 stars 14 forks source link

Promote return value scalars in ONNXModel #112

Closed orausch closed 2 years ago

orausch commented 2 years ago

Dace doesn't support returning CPU scalars from SDFGs. To overcome this, we promote scalars to arrays, and then demote them again before returning to the user.

codecov[bot] commented 2 years ago

Codecov Report

Merging #112 (03eb80f) into master (c450015) will increase coverage by 0.08%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #112      +/-   ##
==========================================
+ Coverage   68.24%   68.31%   +0.08%     
==========================================
  Files          59       59              
  Lines        6841     6848       +7     
==========================================
+ Hits         4668     4678      +10     
+ Misses       2173     2170       -3     
Impacted Files Coverage Δ
daceml/onnx/onnx_importer.py 96.64% <100.00%> (+1.24%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us.