mic
mic

Reputation: 1266

Measure FLOPs from Numpy operations

Is there a general way of measuring how many floating-point operations a sequence of Numpy commands involves?—commands such as np.random.randint, np.sum, np.argmin, np.matmul or @, etc.

Or is the only way to do it manually, thinking from a pure mathematical standpoint and/or looking at how Numpy implements the functions, as follows:

Upvotes: 3

Views: 1990

Answers (0)

Related Questions