Skip to content

Commit

Permalink
commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ksaur committed Mar 31, 2020
1 parent a93d57a commit 2c95f48
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -15,3 +15,7 @@ repos:
- id: detect-private-key
- id: trailing-whitespace
- id: no-commit-to-branch
- repo: https://github.com/ksaur/pre-commit-hooks
rev: v2.9.0
hooks:
- id: badge-cov
2 changes: 1 addition & 1 deletion README.md
@@ -1,7 +1,7 @@
# Hummingbird

![](https://github.com/microsoft/hummingbird/workflows/Python%20application/badge.svg?branch=develop)

![](https://github.com/microsoft/hummingbird/coverage.svg?branch=develop)

## Introduction
*sklearn-pytorch* converts [scikit-learn](https://scikit-learn.org/stable/) models to [PyTorch](https://pytorch.org/). Once in the PyTorch format, you can further convert to [ONNX](https://github.com/onnx/onnx) or [TorchScript](https://pytorch.org/docs/stable/jit.html) for high performance native scoring.
Expand Down
21 changes: 21 additions & 0 deletions coverage.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions hummingbird/common/_registration.py
Expand Up @@ -35,6 +35,7 @@ def register_converter(operator_name, conversion_function, overwrite=False):
"""
if not overwrite and operator_name in _converter_pool:
raise ValueError("We do not overwrite registered converter " "by default")

_converter_pool[operator_name] = conversion_function


Expand Down

0 comments on commit 2c95f48

Please sign in to comment.