You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: 'Computes the inverse hyperbolic cosine of elements in a PyTorch tensor.'
4
+
Subjects:
5
+
- 'Computer Science'
6
+
- 'Data Science'
7
+
Tags:
8
+
- 'Deep Learning'
9
+
- 'Programming'
10
+
- 'PyTorch'
11
+
CatalogContent:
12
+
- 'intro-to-py-torch-and-neural-networks'
13
+
- 'paths/data-science'
14
+
---
15
+
16
+
The **`.acosh()`** method in PyTorch computes the inverse hyperbolic cosine of each element in a [tensor](https://www.codecademy.com/resources/docs/pytorch/tensors). This operation is applied element-wise and is commonly used in scientific computations involving hyperbolic functions.
17
+
18
+
## Syntax
19
+
20
+
```pseudo
21
+
torch.acosh(input, *, out=None) → Tensor
22
+
```
23
+
24
+
**Parameters:**
25
+
26
+
-`input`: The input tensor containing values greater than or equal to 1.
27
+
-`out` (Optional): The output tensor to store the result. If not provided, a new tensor is created.
28
+
29
+
**Returns:**
30
+
31
+
A tensor with the inverse hyperbolic cosine of each element from the input tensor.
32
+
33
+
## Example
34
+
35
+
This example shows how to use `.acosh()` to compute the inverse hyperbolic cosine of a tensor:
0 commit comments