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

dotview performance with KnetArray #650

Open
denizyuret opened this issue Dec 26, 2020 · 0 comments
Open

dotview performance with KnetArray #650

denizyuret opened this issue Dec 26, 2020 · 0 comments

Comments

@denizyuret
Copy link
Owner

kx::Param{KnetArray}                                                                                                               
kx[:] = 0   # 29us   -- setindex!(kx, 0, :)  !!! illegal on ax, crashes on cx                                                      
kx[:] .= 0  # 34us   -- materialize!(dotview(kx,:),broadcasted(identity,0))                                                        
kx .= 0     # 1380us -- materialize!(kx, broadcasted(identity, 0))                                                                 
kx.value[:] = 0   # 31us                                                                                                           
kx.value[:] .= 0  # 1417us                                                                                                         
kx.value .= 0     # 66us                                                                                                           
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

No branches or pull requests

1 participant