majikxu/laya/tensor does not have a README file
pub type Arenapub type MetalBufferfn MetalBuffer::download(self : MetalBuffer, dst : FixedArray[Float], count~ : Int, offset? : Int) -> Unitfn MetalBuffer::upload(self : MetalBuffer, src : FixedArray[Float], count~ : Int, offset? : Int) -> Unitfn MetalBuffer::upload_ints(self : MetalBuffer, src : FixedArray[Int], count~ : Int, offset? : Int) -> Unitpub type MetalContextfn MetalContext::add_broadcast(self : MetalContext, x : MetalBuffer, v : MetalBuffer, rows~ : Int, cols~ : Int, v_offset~ : Int64) -> Unitfn MetalContext::fill_bias(self : MetalContext, y : MetalBuffer, bias : MetalBuffer, rows~ : Int, cols~ : Int, y_offset? : Int, bias_offset~ : Int64) -> Unitfn MetalContext::gather_rows(self : MetalContext, src : MetalBuffer, indices : MetalBuffer, dst : MetalBuffer, rows~ : Int, cols~ : Int) -> Unitfn MetalContext::geglu(self : MetalContext, x : MetalBuffer, y : MetalBuffer, rows~ : Int, inner~ : Int) -> Unitfn MetalContext::gemm(self : MetalContext, a : MetalBuffer, b : MetalBuffer, c : MetalBuffer, m~ : Int, n~ : Int, k~ : Int, lda~ : Int, ldb~ : Int, ldc~ : Int, a_offset? : Int64, b_offset? : Int64, c_offset? : Int64, a_stride? : Int64, b_stride? : Int64, c_stride? : Int64, batch? : Int, trans_b? : Bool, alpha? : Float, beta? : Float) -> Unitfn MetalContext::layer_norm(self : MetalContext, x : MetalBuffer, y : MetalBuffer, gamma : MetalBuffer, beta : MetalBuffer, rows~ : Int, cols~ : Int, x_offset? : Int, y_offset? : Int, gamma_offset~ : Int64, beta_offset~ : Int64, eps~ : Float) -> Unitfn MetalContext::rope(self : MetalContext, x : MetalBuffer, heads~ : Int, len~ : Int, dim~ : Int, base~ : Double) -> Unitfn MetalContext::softmax(self : MetalContext, scores : MetalBuffer, rows~ : Int, len~ : Int, window~ : Int) -> Unitfn MetalContext::split_qkv(self : MetalContext, qkv : MetalBuffer, q : MetalBuffer, k : MetalBuffer, v : MetalBuffer, heads~ : Int, len~ : Int, dim~ : Int) -> Unitfn MetalContext::unpack_heads(self : MetalContext, context_buffer : MetalBuffer, packed : MetalBuffer, heads~ : Int, len~ : Int, dim~ : Int) -> Unitpub type Readerfn add_inplace(a : FixedArray[Float], b : FixedArray[Float], len~ : Int) -> Unitfn geglu(x : FixedArray[Float], out : FixedArray[Float], rows~ : Int, inner~ : Int) -> Unitfn gelu_inplace(x : FixedArray[Float], len~ : Int) -> Unitfn gemm(a : FixedArray[Float], b : FixedArray[Float], c : FixedArray[Float], m~ : Int, n~ : Int, k~ : Int, a_offset? : Int, b_offset? : Int, c_offset? : Int, lda~ : Int, ldb~ : Int, ldc~ : Int, trans_b? : Bool, alpha? : Float, beta? : Float) -> Unitfn layer_norm(x : FixedArray[Float], out : FixedArray[Float], rows~ : Int, cols~ : Int, gamma : FixedArray[Float], beta : FixedArray[Float]?, eps~ : Float) -> Unitfn linear(x : FixedArray[Float], arena : Arena, weight_offset : Int64, bias_offset : Int64, y : FixedArray[Float], m~ : Int, k~ : Int, n~ : Int) -> Unitfn relu_inplace(x : FixedArray[Float], len~ : Int) -> Unitfn rope_inplace(x : FixedArray[Float], heads~ : Int, len~ : Int, dim~ : Int, base~ : Double) -> Unitfn softmax_rows(x : FixedArray[Float], rows~ : Int, cols~ : Int, offset? : Int) -> UnitInstall
Download zipLaya typed-decision inference engine for MoonBit — native ModernBERT/mmBERT encoder, no Python runtime