std1.0.0-beta-7 SafeC docs

std :: ml::tensor

Macro TENSOR_EW_PAR

#include <std/ml/tensor.h> source

#define TENSOR_EW_PAR 65536UL

One loop per op over raw arrays, which the compiler vectorizes; arrays of TENSOR_EW_PAR or more elements are split across std/sync/parallel.h's thread pool. Used by the forward ops in tensor.sc / tensor_nn.sc and by the backward functions below.