Skip to contents

All functions

zl_scale() zl_sum() zl_sum_rows() zl_mean_rows() zl_cumsum() zl_sqr() zl_sqrt() zl_exp() zl_log() zl_abs() zl_sin() zl_cos() zl_relu() zl_silu() zl_softplus() zl_sigmoid() zl_tanh() zl_gelu() zl_swiglu()
Arithmetic, reductions and elementwise functions on tensors
zl_softmax() zl_causal_mask() zl_rope() zl_rms_norm() zl_layer_norm()
Attention pieces and normalisation
zl_cross_entropy() zl_mse() zl_mae()
Losses
zl_linear() zl_embedding() zl_norm() zl_attention() zl_mlp() zl_block() zl_adaln() zl_time_embedding()
Modules
zl_where() zl_clamp() zl_tri()
Selection, clipping and triangles
zl_crossprod() zl_reshape() zl_permute() zl_t() zl_cont() zl_view() zl_concat() zl_pad() zl_get_rows()
Products and shapes of tensors
zl_adamw() zl_sgd()
Optimisers
zl_arrow_batches() zl_next() print(<zl_arrow_batches>)
Batches from Arrow streams
zl_cast()
Convert a tensor's type
zl_flash_attention()
Flash attention
zl_graph() zl_int() zl_forward() zl_graph_info()
Build and run graphs
zl_graph_cache() print(<zl_graph_cache>)
Graphs built once per input shape
zl_init_normal() zl_init_uniform() zl_init_zeros() zl_init_ones()
Initialisers for parameters
zl_noise_normal() zl_noise_uniform()
Random draws inside a graph
zl_params() zl_param() zl_param_get() zl_param_set() zl_param_names() zl_param_count() zl_param_tensor()
Parameter stores
zl_rng_uniform() zl_rng_normal()
Random draws, in R
zl_safetensors_read() zl_load_safetensors() zl_save_safetensors()
safetensors files
zl_save() zl_load()
Save and load parameters as GGUF
zl_seed()
The session's random-number key
zl_state() zl_state_get() zl_state_set() zl_state_write()
State tensors
zl_threads()
Threads
zl_trainer() zl_step() zl_grad()
Train a graph
zl_trainer_save() zl_trainer_load() zl_reset()
Save, load and reset a trainer's optimiser state
zulm-conditions
Conditions signalled by zulm
zulm_info()
Build and runtime information