-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix loading type problem for netfx #2409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2409 +/- ##
=========================================
Coverage ? 71.24%
=========================================
Files ? 785
Lines ? 140893
Branches ? 16103
=========================================
Hits ? 100383
Misses ? 36044
Partials ? 4466
|
@Ivanidzo4ka @sfilipi @justinormont can you please review this PR ? |
@@ -135,7 +135,8 @@ void TestOldSavingAndLoading() | |||
[ConditionalFact(typeof(Environment), nameof(Environment.Is64BitProcess))] // x86 output differs from Baseline | |||
void TestCommandLine() | |||
{ | |||
var env = new MLContext(); | |||
// typeof helps to load the TensorFlowTransformer type. | |||
Type type = typeof(TensorFlowTransformer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea why typeof
helps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So when we create an instance of a type in Maml, we check if the type\assembly is present in the loaded modules.
Typeof helps to load the assembly involving this type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #2104
A couple of types doesn't get loaded properly by Maml commands on netfx. So we have to register them manually.
We are doing a similar things for maml commands in our benchmarks.
These tests fail on netfx and are being enabled in #2402