andykee/loupe

Power should not accept arrays with requires_grad=True as exponents

Opened this issue · 0 comments

Description

Since power() doesn't support computing the gradient of exponents, it should throw an error if the exponent is a loupe array with requires_grad=True.

Expected behavior

Throw a RuntimeError if the exponent has requires_grad=True.

Actual behavior

No error is thrown.