What is the meaning of this snippet of code? Where does it likely stem from and why is it needed?

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
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence