04d0a9bbfc085d244ee5abed1e4591202a8bd4cb,web/minstServingHandler.py,,do_inference,#Any#Any#,130

Before Change


    result_future.add_done_callback(
        _create_rpc_callback(label[0], result_counter))
    print("////////////////////////")
    return result_counter.get_error_rate()

After Change


        print(exception)
    else:
        sys.stdout.write(".")
        sys.stdout.flush()
        response = numpy.array(
            result_future.result().outputs["scores"].float_val)
        // print("response:\n",result_future.result())
        prediction = str(numpy.argmax(response))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pythonstock/stock
Commit Name: 04d0a9bbfc085d244ee5abed1e4591202a8bd4cb
Time: 2017-10-26
Author: yhy
File Name: web/minstServingHandler.py
Class Name:
Method Name: do_inference


Project Name: IDSIA/sacred
Commit Name: c99ded5e8677241f513b05e91fd3a85af6e7b692
Time: 2017-01-05
Author: qwlouse@gmail.com
File Name: sacred/run.py
Class Name: Run
Method Name: _get_captured_output


Project Name: tensorflow/tensorboard
Commit Name: af21ccb6bbfb24e438e366a13b4066d528d7d495
Time: 2021-03-23
Author: wchargin@gmail.com
File Name: tensorboard/program.py
Class Name: TensorBoard
Method Name: _make_data_ingester