Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify endian detection logic (onnx#5594)
Simplify endian detection logic by removing if branches and leveraging c++ syntax. Reference: https://github.com/pytorch/pytorch/blob/653c1564bf4c46d9758000ea70a610ee3699acf1/caffe2/operators/fused_rowwise_nbitfake_conversion_ops.h#L16-L19 ### Motivation and Context Code quality --------- Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
- Loading branch information