---
title: "logSoftmax(axis:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/bnnsgraph/builder/tensor/logsoftmax(axis:)"
---

# logSoftmax(axis:)

Adds a log-softmax along the given axis operation to the current graph.

## Declaration

```swift
func logSoftmax(axis: Int) -> BNNSGraph.Builder.Tensor<T>
```

## Parameters

- `axis`: The axis over which the operation computes softmax.
