docs: fix stack and add dtype.DType (#4721)

This commit is contained in:
chenyu
2024-05-24 18:23:01 -04:00
committed by GitHub
parent a16d2572a0
commit edf27470c1
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
::: tinygrad.dtypes
::: tinygrad.dtype.DType
::: tinygrad.dtype.dtypes
options:
members: true
members_order: source

View File

@@ -986,7 +986,7 @@ class Tensor:
print(t0.stack(t1, t2, dim=0).numpy())
```
```python exec="true" source="above" session="tensor" result="python"
print(t0.stack([t1, t2], dim=1).numpy())
print(t0.stack(t1, t2, dim=1).numpy())
```
"""
# checks for shapes and number of dimensions delegated to cat