dev2.py 400 Bytes
Newer Older
1
2
3
4
5
from cumm import tensorview as tv 

from cumm.tensorview import tvio
import numpy as np
from pathlib import Path
yan.yan's avatar
sync  
yan.yan committed
6
7


8
9
10
11
12
13
14
15
def main():
    data = np.load(Path(__file__).parent / "data" / "benchmark-pc.npz")
    with open(Path(__file__).parent / "data" / "benchmark-pc.jarr", "wb") as f:
        f.write(tvio.dumps_jsonarray({
            "pc": data
        }).tobytes())
if __name__ == "__main__":
    main()