Transforms
Why Use Transforms?
Getting Started
---@param arr Tensor
---@return Tensor
function Postprocess(arr, ...)
-- your postprocessing logic
return tensor
endCreating a New Transform
Input Signatures
Embedding
Sequence Classification
Token Classification
Sentence Embedding
Typical Transform Patterns
1. Elementwise Transforms
2. Normalization Across Axis
3. Mask-aware adjustments
Best Practices
Debugging Transforms
Configuration
Last updated