Implement tools/save_net_param.cpp.