def is_param(name):
    if name == 'data':
        return False
    if name.endswith('weight'):
        return True
    if name.endswith('bias'):
        return True
    if name.endswith('beta'):
        return True
    if name.endswith('gamma'):
        return True
    return False
Quick script to check if name is a parameter.
dataset/ETHPy150Open dmlc/mxnet-memonger/memonger.py/is_param