Mila 0.13.48
Deep Neural Network Library
Loading...
Searching...
No Matches
Tensor.Types.ixx File Reference

Core shape, stride, and index types for the Mila tensor API. More...

#include <array>
#include <string>
#include <cstdint>
#include <stdexcept>
#include <algorithm>
#include <initializer_list>

Classes

struct  Mila::Dnn::TensorShape
 Fixed-capacity inline shape descriptor for N-dimensional tensors. More...

Namespaces

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

Typedefs

using Mila::Dnn::dim_t = int64_t
 Integer type used for tensor dimensions and indices.
using Mila::Dnn::index_t = TensorShape
 Index descriptor for multi-dimensional element access.
using Mila::Dnn::shape_t = TensorShape
 Row-major shape descriptor for tensor dimensional sizes.
using Mila::Dnn::stride_t = TensorShape
 Stride descriptor (in elements) for each tensor dimension, row-major layout.

Functions

std::string Mila::Dnn::indexToString (const index_t &index)
std::string Mila::Dnn::shapeToString (const shape_t &shape)
std::string Mila::Dnn::strideToString (const stride_t &stride)

Detailed Description

Core shape, stride, and index types for the Mila tensor API.

Defines TensorShape — a fixed-capacity inline shape descriptor — and the shape_t, stride_t, and index_t aliases used throughout the framework.