mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
docs: fix stack and add dtype.DType (#4721)
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
::: tinygrad.dtypes
|
::: tinygrad.dtype.DType
|
||||||
|
|
||||||
|
::: tinygrad.dtype.dtypes
|
||||||
options:
|
options:
|
||||||
members: true
|
members: true
|
||||||
members_order: source
|
members_order: source
|
||||||
|
|||||||
@@ -986,7 +986,7 @@ class Tensor:
|
|||||||
print(t0.stack(t1, t2, dim=0).numpy())
|
print(t0.stack(t1, t2, dim=0).numpy())
|
||||||
```
|
```
|
||||||
```python exec="true" source="above" session="tensor" result="python"
|
```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
|
# checks for shapes and number of dimensions delegated to cat
|
||||||
|
|||||||
Reference in New Issue
Block a user