(self)
return state
Pickle export.
Pickle export.
Pickle export .
def __getstate__(self) -> dict:
        """Pickle export."""
        state = dict()
        state["version"]            = 4
        state["name"]               = self.name
        state["static_kwargs"]      = dict(self.static_kwargs)
        state["components"]         = dict(self.components)
        state["build_module_src"]   = self._build_module_src
        state["build_func_name"]    = self._build_func_name
        state["variables"]          = list(zip(self.own_vars.keys(), tfutil.run(list(self.own_vars.values()))))
        return state
def __getstate__ ( self ) -> dict : state = dict ( ) state [ "version" ] = 4 state [ "name" ] = self . name state [ "static_kwargs" ] = dict ( self . static_kwargs ) state [ "components" ] = dict ( self . components ) state [ "build_module_src" ] = self . _build_module_src state [ "build_func_name" ] = self . _build_func_name state [ "variables" ] = list ( zip ( self . own_vars . keys ( ) , tfutil . run ( list ( self . own_vars . values ( ) ) ) ) ) return state