```block
val attnMaskMul = sciCore.triangle(DataType.FLOAT32, seqLen, seqLen, 0.0, 1.0)
val attnMaskAdd = sciCore.triangle(DataType.FLOAT32, seqLen, seqLen, Double.NEGATIVE_INFINITY, 0.0)

att * attnMaskMul + attnMaskAdd
```
In this code snippet, attnMaskMul and attnMaskAdd are two matrices used to apply a mask to the attention scores, which are computed based on the similarity between the input sequence and a target sequence. The sciCore.triangle function is used to create these matrices as triangular matrices, which have zeros on one side and non-zero values on the other side. 
The att variable represents the attention scores computed for each element in the sequence. By multiplying these scores with the attnMaskMul matrix and adding the attnMaskAdd matrix, the attention scores are masked to ensure that they only consider elements that occur before or after the current position in the sequence, and not elements that occur at the same position.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence