"src/targets/gpu/min.cpp" did not exist on "96358e41cc883791c8d3ad50280bea4871a18000"
  • Ted Themistokleous's avatar
    Add in changes for onnx Mod operator · 76035525
    Ted Themistokleous authored
    Initial operator for mod implimentation and test cases for integer and floating based types.
    
    Need to use fmod from stdlib for floating point types. half_float::half thankfully is specced to the use the existing std::fmod() call when looking at the half.hpp implimentation.
    
    fmod_flag should mirror the onnx fmod attribute. Right now using a floating point type without setting that on the user side to true will result in an exception.
    
    Ref ticket #1283
    
    Double,float and half use their own typename specification to achieve this, otherwise we rely on the % operator to get the integer remainder while preserving sign of the dividend to the result.
    76035525
ref_ops_test.cpp 248 KB