• Ted Themistokleous's avatar
    Add onnx mod operator (#1302) · 77e80b8e
    Ted Themistokleous authored
    * Add in changes for onnx Mod operator
    
    Initial operator for mod implementation 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 implementation.
    
    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 
    77e80b8e
onnx_parser.cpp 18.3 KB