Mila 0.13.48
Deep Neural Network Library
Loading...
Searching...
No Matches
TensorOps.Zero.ixx File Reference

Device-dispatched fast zero operation for tensor buffers. More...

Namespaces

namespace  Mila
 Mila main API namespace.
namespace  Mila::Dnn

Functions

template<TensorDataType TDataType, typename TMemoryResource>
requires isValidTensor<TDataType, TMemoryResource>
void Mila::Dnn::zero (Tensor< TDataType, TMemoryResource > &tensor, IExecutionContext *exec_context=nullptr)
 Zero a tensor using the fastest backend implementation.

Detailed Description

Device-dispatched fast zero operation for tensor buffers.

Provides the high-level, device-agnostic entry point zero(...) that forwards to the backend TensorOps<device>::zero(...) implementation.