Skip to content

Commit

Permalink
einsum support
Browse files Browse the repository at this point in the history
  • Loading branch information
blueridanus committed Dec 9, 2023
1 parent 970ed5a commit 194dad8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion einops/_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,4 +708,7 @@ def concat(self, tensors, axis: int):
return tensors[0].cat(tensors[1:], axis) if len(tensors) > 1 else tensors[0]

def is_float_type(self, x):
return self.tinygrad.dtypes.is_float(x.dtype)
return self.tinygrad.dtypes.is_float(x.dtype)

def einsum(self, pattern, *x):
return self.tinygrad.Tensor.einsum(pattern, *x)

0 comments on commit 194dad8

Please sign in to comment.