Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cli scripts batch score test automation #2108

Merged
merged 1 commit into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cli/endpoints/batch/mnist/code/batch_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
import numpy as np
import pandas as pd
import tensorflow as tf
import tensorflow.compat.v1 as tf
from PIL import Image
from azureml.core import Model

Expand All @@ -18,6 +18,7 @@ def init():
model_path = os.path.join(os.environ["AZUREML_MODEL_DIR"], "model")

# contruct graph to execute
tf.disable_v2_behavior()
tf.reset_default_graph()
saver = tf.train.import_meta_graph(os.path.join(model_path, "mnist-tf.model.meta"))
g_tf_sess = tf.Session(config=tf.ConfigProto(device_count={"GPU": 0}))
Expand Down
4 changes: 2 additions & 2 deletions cli/endpoints/batch/mnist/environment/conda.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"conda-forge"
],
"dependencies": [
"python=3.6.2",
"python=3.9.16",
"pip",
{
"pip": [
"tensorflow==2.1.4",
"tensorflow==2.11.0",
"pillow",
"azureml-core",
"azureml-dataset-runtime[fuse]"
Expand Down
4 changes: 2 additions & 2 deletions cli/endpoints/batch/mnist/environment/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: mnist-env
channels:
- conda-forge
dependencies:
- python=3.6.2
- python=3.9.16
- pip<22.0
- pip:
- tensorflow==2.1.4
- tensorflow==2.11.0
- pillow
- pandas
- azureml-core
Expand Down