示例#1
0
    def serialize(self, indent: int = 0) -> str:
        """Serialize function (compute graph) to a JSON string.

        :param indent: set indent of serialized output
        :return: serialized model
        """
        return serialize(self.function, indent)
示例#2
0
文件: runtime.py 项目: okhat/ngraph
    def serialize(self, indent=0):  # type: (int) -> str
        """Serialize function (compute graph) to a JSON string.

        :param indent: set indent of serialized output
        :return: serialized model
        """
        return serialize(self.function, indent)
示例#3
0
 def serialize(self):  # type: () -> str
     """Serialize function (compute graph) to a JSON string."""
     return serialize(self.function)