Skip to content

Instantly share code, notes, and snippets.

View yisongsong's full-sized avatar
🎯
Focusing

yssongest yisongsong

🎯
Focusing
View GitHub Profile
@ikuokuo
ikuokuo / onnx_cut.py
Created June 2, 2021 13:21
Cut sub-model from an ONNX model, and update its input/output names or shapes
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: disable=missing-docstring
import argparse
import os
import sys
import timeit
import typing
import onnx