Skip to content

Add local_config.go which adds custom plugins #86

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

Merged
merged 2 commits into from
Apr 29, 2025

Conversation

mayabar
Copy link
Collaborator

@mayabar mayabar commented Apr 29, 2025

Ref #85

@mayabar mayabar requested review from shmuelk and nirrozenbaum April 29, 2025 12:16
Copy link
Collaborator

@shmuelk shmuelk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

func NewLoadBasedScorer() plugins.Scorer {
return LoadBasedScorer{}
}

func (s LoadBasedScorer) Name() string {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* is missing, should be func (s *LoadBasedScorer) Name() ...

)

func init() {
defaultConfig.scorers[scorers.LoadBasedScorer{}] = 1.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing &. and values are int (weights are int values).
this should be:
defaultConfig.scorers[&scorers.LoadBasedScorer{}] = 1

@mayabar mayabar merged commit 54c73a6 into neuralmagic:dev Apr 29, 2025
1 check passed
@mayabar
Copy link
Collaborator Author

mayabar commented Apr 29, 2025

Fix #85

@mayabar mayabar deleted the local_config branch April 30, 2025 05:36
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.

3 participants