Skip to content

Commit

Permalink
Add PythonState
Browse files Browse the repository at this point in the history
  • Loading branch information
hoel-bagard committed Jan 31, 2024
1 parent 080b155 commit e8541b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions stubs/tensorflow/tensorflow/train/experimental.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
import abc
from _typeshed import Incomplete
from typing import Self

from tensorflow.python.trackable.base import Trackable

class PythonState(Trackable, metaclass=abc.ABCMeta):
@abc.abstractmethod
def serialize(self) -> Self: ...
@abc.abstractmethod
def deserialize(self, string_value) -> str: ...

def __getattr__(name: str) -> Incomplete: ...

0 comments on commit e8541b9

Please sign in to comment.