NumSharp icon indicating copy to clipboard operation
NumSharp copied to clipboard

Performance on np.matmul

Open Banyc opened this issue 5 years ago • 3 comments

The shape of x is [200, 1000], of w is [1000, 500], and of b is [500]

b is filled with zeros, x and w are random float64/double.

Example code of NumSharp:

var out = np.matmul(x, w) + b;

... takes 3-4 seconds.

Example code of numpy:

out = x @ w + b

... finishes immediately.

Banyc avatar Oct 31 '20 12:10 Banyc

@Banyc Can you test it in TensorFlow.NET eager mode?

Oceania2018 avatar Oct 31 '20 13:10 Oceania2018

I use only this package to implement neural network layers from the stretch, without using other packages like Tensorflow.NET.

Banyc avatar Oct 31 '20 14:10 Banyc

It will have performance issue. Should use other more mature package.

Oceania2018 avatar Oct 31 '20 14:10 Oceania2018