Skip to content

Commit

Permalink
Add abstract method
Browse files Browse the repository at this point in the history
  • Loading branch information
kaixih committed Feb 11, 2025
1 parent adab3f6 commit c67c7ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MaxText/layers/quantizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def dot_general_cls(self, mesh_axes: Tuple[str, ...] = ()):
"""Placeholder for dot_general implementation in subclasses."""
pass

def einsum(self, dtype: DType = jnp.float32):
"""Placeholder for einsum implementation in subclasses."""
pass


def _tiling_fn(lhs, rhs, dimension_numbers, tile_size):
del lhs, rhs
Expand Down

0 comments on commit c67c7ca

Please sign in to comment.