BasaltBasalt

bytes

Structs

Bytes
  • Parameters
    • capacity - Int
  • Fields
    • data - StaticTuple[SIMD[ui8, 1], capacity]
  • Functions

Functions

collection

Structs

Collection
  • Fields
    • size - Int
    • capacity - Int
    • data - AnyPointer[Tensor[f32]]
    • symbols - DTypePointer[ui32, 0]
  • Functions

dataloader

Structs

Batch
  • Parameters
    • dtype - DType
  • Fields
    • data - Tensor[dtype]
    • labels - Tensor[dtype]
  • Functions
DataLoader
  • Fields
    • data - Tensor[f32]
    • labels - Tensor[f32]
    • batch_size - Int
  • Functions

datasets

Structs

BostonHousing
  • Fields
    • data - Tensor[f32]
    • labels - Tensor[f32]
  • Functions
  • Aliases
    • n_inputs = 13
MNIST
  • Fields
    • data - Tensor[f32]
    • labels - Tensor[f32]
  • Functions

Functions

perf_utils

Structs

PerfMetricsValues
  • Fields
    • node - Node
    • time - SIMD[f64, 1]
  • Functions
PerfMetrics
  • Fields
    • forward_perf_metrics - List[PerfMetricsValues]
    • backward_perf_metrics - List[PerfMetricsValues]
    • epochs_forward - Int
    • epochs_backward - Int
    • start - Int
  • Functions

Functions

rand_utils

Structs

MersenneTwister
  • Fields
    • state - StaticTuple[SIMD[si32, 1], 624]
    • index - Int
  • Functions
  • Aliases
    • N = 624
    • M = 397
    • MATRIX_A = SIMD[si32, 1](2567483615)
    • UPPER_MASK = SIMD[si32, 1](2147483648)
    • LOWER_MASK = SIMD[si32, 1](2147483647)
    • TEMPERING_MASK_B = SIMD[si32, 1](2636928640)
    • TEMPERING_MASK_C = SIMD[si32, 1](4022730752)

Functions

tensorutils

Functions