-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Merge ModuleCatalog into ComponentCatalog. #1022
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
@@ -290,8 +290,6 @@ public sealed class CmdParser | |||
private const int SpaceBeforeParam = 2; | |||
private readonly ErrorReporter _reporter; | |||
private readonly IHost _host; | |||
// REVIEW: _catalog should be part of environment and can be get through _host. |
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.
REVIEW: _catalog should be part of environment and can be get through _host. [](start = 11, length = 76)
How about that. :)
public static void Initialize() | ||
{ | ||
ImageAnalytics.Initialize(); | ||
} |
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.
What is the new alternative to this, for the sake of the legacy API? @yaeldekel
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.
We only have 2 of these empty Initialize()
methods, so it wasn't really a holistic plan.
If someone is using the "new API" this isn't necessary at all.
If someone is using the legacy API, and needs to do this, they can follow the same approach outlined in the following issues:
- Hosting a pre-trained ML Model in Azure Functions #569 (comment)
- LoadTransform and LinearClassificationTrainer doesnot work in AzureFunctions #559
Basically, they can just get the typeof
some type in that assembly to ensure it is loaded up front.
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.
Excellent, thank you @eerhardt . Only real problem is the initialize method I think, that's making your build break but otherwise looks great.
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.
This completes the ComponentCatalog refactoring work for
v0.6
. It merges theModuleCatalog
andComponentCatalog
types into a single type.Follow up for #208.