Skip to content
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

Add numpy compatible dot funciton and override __matmul__ operator #899

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YukioOobuchi
Copy link
Contributor

Add numpy compatible dot funciton and override matmul operator

@YukioOobuchi YukioOobuchi added the release-note-core Auto-release; Core Engine label Jun 30, 2021
@YukioOobuchi YukioOobuchi added release-note-op-layer Auto-release; Layer Functions and removed release-note-core Auto-release; Core Engine labels Jun 30, 2021
return F.reshape(h, h.shape[:-1])
raise ValueError(f'Undefined configuration: a.ndim={a.ndim}, b.ndim:{b.ndim}')

return x * y
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to be a runtime error. Function inputs are a and b and no variables x and y are defined at this point.

import nnabla.fucntions as F
assert out is None, "The `out` option is not supported."

def _chk(x):
Copy link
Contributor

Choose a reason for hiding this comment

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

Please consider making this a descriptive name, such as _is_nnabla_data_type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-op-layer Auto-release; Layer Functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants