File size: 1,230 Bytes
dc2106c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

def parse_model(model: str) -> tuple[bool, bytes, bytes]:
    """Returns (success-flag, error-message, serialized-proto).

    If success-flag is true, then serialized-proto contains the parsed ModelProto.
    Otherwise, error-message contains a string describing the parse error.
    """
    ...

def parse_graph(graph: str) -> tuple[bool, bytes, bytes]:
    """Returns (success-flag, error-message, serialized-proto).

    If success-flag is true, then serialized-proto contains the parsed GraphProto.
    Otherwise, error-message contains a string describing the parse error.
    """
    ...

def parse_function(function: str) -> tuple[bool, bytes, bytes]:
    """Returns (success-flag, error-message, serialized-proto).

    If success-flag is true, then serialized-proto contains the parsed FunctionProto.
    Otherwise, error-message contains a string describing the parse error.
    """
    ...

def parse_node(node: str) -> tuple[bool, bytes, bytes]:
    """Returns (success-flag, error-message, serialized-proto).

    If success-flag is true, then serialized-proto contains the parsed NodeProto.
    Otherwise, error-message contains a string describing the parse error.
    """
    ...