gorgonia / tensor

package tensor provides efficient and generic n-dimensional arrays in Go that are useful for machine learning and deep learning purposes
Apache License 2.0
362 stars 49 forks source link

optimization for the array structure #42

Closed owulveryck closed 5 years ago

owulveryck commented 5 years ago

The value field is not initialized when the structure is created. The population of the value is made when on call to Data() if the value is nil

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-0.1%) to 72.711% when pulling 0a9a1ec94c4942782496845bbdab5aad08742ffc on optim into 8eeece33868236224d51e7362e36a68642870bd2 on master.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-0.1%) to 72.711% when pulling 0a9a1ec94c4942782496845bbdab5aad08742ffc on optim into 8eeece33868236224d51e7362e36a68642870bd2 on master.

owulveryck commented 5 years ago

For info, there is a bench done in onnx-go

chewxy commented 5 years ago

Gentleman and scholar

owulveryck commented 5 years ago

Ok to merge?