@@ -217,34 +217,55 @@ def treat_dataset(dataset: dict) -> tuple:
217217 "x" : "$mnist_datasets_normalized.test_images"
218218 }
219219)
220- predict_tensorflow .wait ("mnist_model_predicted" )
221220
222221evaluate_tensorflow = EvaluateTensorflow (CLUSTER_IP )
223222evaluate_tensorflow .create_evaluate_async (
224223 name = "mnist_model_evaluated" ,
225224 model_name = "mnist_model" ,
226- parent_name = "mnist_model_predicted " ,
225+ parent_name = "mnist_model_trained " ,
227226 method_name = "evaluate" ,
228227 parameters = {
229- "x" : "$mnist_model_predicted " ,
230- "y" : "$$ mnist_datasets_normalized.test_labels"
228+ "x" : "$mnist_datasets_normalized.test_images " ,
229+ "y" : "$mnist_datasets_normalized.test_labels"
231230 }
232231)
232+
233+ predict_tensorflow .wait ("mnist_model_predicted" )
233234evaluate_tensorflow .wait ("mnist_model_evaluated" )
234235
236+ show_mnist_predict = '''
237+ print(mnist_predicted)
238+ response = None
239+ '''
240+ function_python .run_function_async (
241+ name = "mnist_model_predicted_print" ,
242+ parameters = {
243+ "mnist_predicted" : "$mnist_model_predicted"
244+ },
245+ code = show_mnist_predict
246+ )
247+
248+
235249show_mnist_evaluate = '''
236250 print(mnist_evaluated)
237251 response = None
238252'''
239-
240253function_python .run_function_async (
241254 name = "mnist_model_evaluated_print" ,
242255 parameters = {
243256 "mnist_evaluated" : "$mnist_model_evaluated"
244257 },
245258 code = show_mnist_evaluate
246259)
260+
247261function_python .wait ("mnist_model_evaluated_print" )
262+ function_python .wait ("mnist_model_predicted_print" )
263+
264+ print (function_python .search_execution_content (
265+ name = "mnist_model_predicted_print" ,
266+ limit = 1 ,
267+ skip = 1 ,
268+ pretty_response = True ))
248269
249270print (function_python .search_execution_content (
250271 name = "mnist_model_evaluated_print" ,
0 commit comments