fn
pow_storage
→Storageint pow_storage(const int & base, const int & expo, int numel, Dtype dt, Device device)Element-wise power: returns base ** expo.
Parameters
base, expoconst Storage&Base and exponent buffers. Both must have
numel elements.numelstd::size_tNumber of elements.
dtDtypeElement dtype.
deviceDeviceTarget device.
Returns
StorageNew storage holding \text{base}^{\text{expo}}.