cONNXr
cONNXr copied to clipboard
maybe replace the type specific trace macros with inline functions?
One thought I had was to maybe replace the type specific traces (TRACE_TENSOR
and so on) by inline functions so the normal c typechecker can act upon these, but this can also be an issue for later (function type errors are more readable than macro errors for most people :D).
I would only replace macros which have no variadic arguments, since I don't know if handling of variadic arguments in functions is portable.
Originally posted by @nopeslide in https://github.com/alrevuelta/cONNXr/pull/49#issuecomment-668822123