TriuIndicesFromΒΆ
Return the indices for the upper-triangle of arr.
Abstract Signature:
TriuIndicesFrom(arr: Tensor, k: int = 0)
PyTorch
API:
βStrategy: Macro 'torch.triu_indices({arr}.size(0), {arr}.size(1), offset={k})'
Keras
API:
βStrategy: Custom / Partial
TensorFlow
API:
βStrategy: Custom / Partial
Apple MLX
API:
βStrategy: Custom / Partial