Created
April 24, 2020 10:29
-
-
Save easonlai/c349d928f10c03f694ab0862767005cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 22, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"Registering model tf_cnn-minions_spongebob_model\n" | |
] | |
} | |
], | |
"source": [ | |
"# Pushing model file to AML model registry\n", | |
"filename = 'docker\\\\zip_models\\\\' + model_version + '.zip'\n", | |
"model_name = 'tf_cnn-minions_spongebob_model'\n", | |
"\n", | |
"model = Model.register(workspace = ws,\n", | |
" model_path = filename,\n", | |
" model_name = model_name,\n", | |
" model_framework=Model.Framework.TENSORFLOW,\n", | |
" tags = {\"network\":\"cnn\"},\n", | |
" description = \"tf-cnn-minions-spongebob-classification-model\")" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.7.4" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment