Skip to content

Commit 5d896bc

Browse files
author
Flax Authors
committed
Merge pull request #4400 from google:nnx-more-optimizations-p2
PiperOrigin-RevId: 700716670
2 parents be2f861 + 7b50ffe commit 5d896bc

File tree

6 files changed

+146
-206
lines changed

6 files changed

+146
-206
lines changed

flax/nnx/reprlib.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import dataclasses
1717
import threading
1818
import typing as tp
19-
from abc import ABC, abstractmethod
2019

2120
A = tp.TypeVar('A')
2221
B = tp.TypeVar('B')
@@ -48,10 +47,9 @@ class Attr:
4847
end: str = ''
4948

5049

51-
class Representable(ABC):
50+
class Representable:
5251
__slots__ = ()
5352

54-
@abstractmethod
5553
def __nnx_repr__(self) -> tp.Iterator[tp.Union[Object, Attr]]:
5654
raise NotImplementedError
5755

0 commit comments

Comments
 (0)