How to use the visualdl.mock.data.sequence_data function in visualdl

To help you get started, we’ve selected a few visualdl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PaddlePaddle / VisualDL / server / visualdl / visual_dl.py View on Github external
def scalars():
    run = request.args.get('run')
    tag = request.args.get('tag')
    is_debug = bool(request.args.get('debug'))
    if is_debug:
        result = mock_data.sequence_data()
    else:
        result = lib.get_scalar(log_reader, run, tag)

    result = gen_result(0, "", result)
    return Response(json.dumps(result), mimetype='application/json')