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

Optimize Tensor-scalar operations by not relying on brodcasting #2

Open
marty1885 opened this issue May 19, 2019 · 0 comments
Open
Labels
optimization make stuff faster!

Comments

@marty1885
Copy link
Member

The current way Etaler handles Tensor-scalar operations is by supply constructors that converts scalar values into Tensors of shape {1}. Then rely on broadcasting to process the entire Tensor. This works and is only a few lines of code. But is very slow (Have to read from memory every operations, can't put the scalar in a register). We'll need another solution to make this fast.

@marty1885 marty1885 added enhancement New feature or request optimization make stuff faster! and removed enhancement New feature or request labels May 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization make stuff faster!
Projects
None yet
Development

No branches or pull requests

1 participant