Skip to content
fn

divide_storages

→Storage
int divide_storages(const int & a, const int & b, int numel, Dtype dt, Device device)

Element-wise division: returns a / b.

Parameters

a, bconst Storage&
Numerator / denominator buffers.
numelstd::size_t
Number of elements.
dtDtype
Element dtype.
deviceDevice
Target device.

Returns

Storage

New storage holding the element-wise quotient.