crystal-data / num.cr

Scientific computing in pure Crystal
MIT License
151 stars 12 forks source link

`sum` and `mean` not defined for Num::Grad::Variable #84

Closed nogginly closed 1 year ago

nogginly commented 1 year ago

I am continuing to work on toy models using num.cr while following some PyTorch examples. As I was setting up the forward calculations using a gradient variable, I needed sum and mean functions which are currently not implemented.