# -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

# pylint: skip-file
import argparse
import sys

# pylint: disable=import-error
import resnet.model as resnet_model
# pylint: disable=import-error
import shufflenet.model as snet_model

import numpy as np

import megengine as mge
import megengine.functional as F
from megengine import jit


def dump_static_graph(model, graph_name, shape):
    model.eval()

    data = mge.Tensor(np.ones(shape, dtype=np.uint8))

    @
jit.trace(capture_as_const=True)