# Using the grpc client in AzureML Accelerated Models SDK
from azureml.accel import PredictionClient
prediction_client = PredictionClient(args.address, args.port)
results = prediction_client.score_file(path=os.path.join(args.image_dir, image),
input_name=args.input_tensors,
outputs=args.output_tensors
Trying again in 10 seconds...
IoT Hub responded to message with status: OK
Unable to inference for unknown reason. See stack trace below:
Traceback (most recent call last):
File "run.py", line 56, in main
outputs=args.output_tensors)
File "/usr/local/lib/python3.5/dist-packages/azureml/accel/_client.py", line 77, in score_file
result = self.score_tensors(input_map, outputs, timeout)
File "/usr/local/lib/python3.5/dist-packages/azureml/accel/_client.py", line 128, in score_tensors
return self.__predict(request, timeout, outputs=outputs)
File "/usr/local/lib/python3.5/dist-packages/azureml/accel/_client.py", line 160, in __predict
return tf.contrib.util.make_ndarray(result.outputs[output_names])
AttributeError: module 'tensorflow' has no attribute 'contrib'
azureml-accel-models 1.0.76
azureml-automl-core 1.0.76
azureml-automl-runtime 1.0.76.1
azureml-contrib-datadrift 1.0.74
azureml-contrib-interpret 1.0.74
azureml-contrib-iot 1.0.76
azureml-contrib-notebook 1.0.76
azureml-contrib-opendatasets 1.0.45
azureml-contrib-pipeline-steps 1.0.76
azureml-contrib-reinforcementlearning 0.1.0.5919674
azureml-contrib-server 1.0.76
azureml-contrib-services 1.0.76
azureml-core 1.0.76
azureml-datadrift 1.0.74
azureml-dataprep 1.1.30
azureml-dataprep-native 13.1.0
azureml-defaults 1.0.76
azureml-explain-model 1.0.74
azureml-interpret 1.0.74
azureml-mlflow 1.0.74
azureml-model-management-sdk 1.0.1b6.post1
azureml-opendatasets 1.0.74
azureml-pipeline 1.0.76
azureml-pipeline-core 1.0.76
azureml-pipeline-steps 1.0.76
azureml-samples 0+unknown
azureml-sdk 1.0.76
azureml-telemetry 1.0.76
azureml-tensorboard 1.0.74
azureml-train 1.0.76
azureml-train-automl 1.0.76
azureml-train-automl-client 1.0.76
azureml-train-automl-runtime 1.0.76.1
azureml-train-core 1.0.76
azureml-train-restclients-hyperdrive 1.0.76
azureml-widgets 1.0.76
RUN pip3 install --upgrade pip && \
pip install setuptools && \
pip install tensorflow==1.5.0