mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
func meshgrid: change param index to type str (#14331)
This commit is contained in:
committed by
GitHub
parent
3b43d26f10
commit
9cbe99348a
@@ -1418,7 +1418,7 @@ class Tensor(OpMixin):
|
||||
perm_to_last = tuple(i for i in range(self.ndim) if i != dim) + (dim,)
|
||||
return self.permute(perm_to_last)._pool((size,), step).permute(argsort(perm_to_last) + (self.ndim,))
|
||||
|
||||
def meshgrid(self:Tensor, *args:Tensor, indexing:Literal["ij", "xy"]="ij") -> tuple[Tensor, ...]:
|
||||
def meshgrid(self:Tensor, *args:Tensor, indexing:str="ij") -> tuple[Tensor, ...]:
|
||||
"""
|
||||
Generates coordinate matrices from coordinate vectors.
|
||||
Input tensors can be scalars or 1D tensors.
|
||||
|
||||
Reference in New Issue
Block a user