triton.language.log

triton.language.log(x, builder=None)

Computes the element-wise natural logarithm of x

Parameters
  • x (Block) – the input values

  • builder (triton.ir.builder, optional from within JIT'ed functions) – IR builder to generate code into