-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: add mindspore to cookbook #2474
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 #2474 +/- ##
==========================================
+ Coverage 83.46% 83.52% +0.05%
==========================================
Files 152 152
Lines 9425 9425
==========================================
+ Hits 7867 7872 +5
+ Misses 1558 1553 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
minor change
.github/2.0/cookbooks/Executor.md
Outdated
class MindsporeMwuExecutor(Executor): | ||
def __init__(self, **kwargs): | ||
super().__init__() | ||
context.set_context(mode=context.PYNATIVE_MODE, device_target="CPU") |
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.
context.set_context(mode=context.PYNATIVE_MODE, device_target="CPU") | |
context.set_context(mode=context.PYNATIVE_MODE, device_target='CPU') |
.github/2.0/cookbooks/Executor.md
Outdated
@requests | ||
def encode(self, docs, **kwargs): | ||
for doc in docs: | ||
input_tensor = Tensor( |
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.
can u make it not pass black? I think it looks leaner?
.github/2.0/cookbooks/Executor.md
Outdated
def __init__(self, **kwargs): | ||
super().__init__() | ||
context.set_context(mode=context.PYNATIVE_MODE, device_target='CPU') | ||
self.dims = 5 |
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.
you do not need self.dims
…into feat-add-mindspore
Co-authored-by: Joan Fontanals <joan.martinez@jina.ai>
Add mindspore to Jina 2.0 cookbook. tested .