megenginelite-sys 1.8.2

A safe megenginelite wrapper in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
decl_raw_opr(
    'atlas_runtime',
    desc='create an operator that could load and run acl offline model',
    inputs=[
        Doc('inputs', 'input vars', 'list of :class:`.SymbolVar`'),
        Doc('data_bytes', 'serialized acl model'),
    ],
    body=[
        'assert isinstance(data_bytes, bytes), '
            '"data must be bytes; got {}".format(type(data_bytes))',
        'output = _mgb._Opr.atlas_runtime(inputs, data_bytes, config)',
        'cvt_result_kwargs["explode_single"] = False',
    ],
)

# vim: ft=python