Skip to content

Conversation

@snnn
Copy link
Contributor

@snnn snnn commented Feb 9, 2022

Description:

Move floatToHalf from onnxruntime_util.lib to onnxruntime_framework.lib, to break the circular dependency between the two libs.

BTW, I'm surprised GCC didn't post an error on this. See https://github.com/microsoft/onnxruntime/blob/master/docs/cmake_guideline.md#static-library-order-matters about why it shouldn't work.

Motivation and Context

  • Why is this change required? What problem does it solve?
  • If it fixes an open issue, please link to the issue here.

@snnn snnn requested a review from edgchen1 February 9, 2022 21:06
@snnn
Copy link
Contributor Author

snnn commented Feb 9, 2022

Actually, instead of making onnxruntime_framework depends on eigen, maybe we should move the MLFloat16::ToFloat() function to somewhere else. @edgchen1 Eigen is used for implementing CPU kernels. We should make the core framework less dependent on Eigen.

I will close this PR and discuss it with @edgchen1.

#6509

@snnn snnn closed this Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants