提交 15af32a9 编写于 作者: S superjom

uptest

上级 7a498cd2
......@@ -77,7 +77,8 @@ def get_image_tag_steps(storage, mode, tag):
for step_index in range(image.num_records()):
record = image.record(step_index, sample_index)
shape = record.shape()
assert shape, "%s,%s" % (mode, tag)
if not shape: continue
# assert shape, "%s,%s" % (mode, tag)
query = urllib.urlencode({
'sample': 0,
'index': step_index,
......
......@@ -131,8 +131,6 @@ def scalars():
@app.route('/data/plugin/images/images')
def images():
mode = request.args.get('run')
# TODO(ChunweiYan) update this when frontend fix the field name
#tag = request.args.get('tag')
tag = request.args.get('tag')
result = lib.get_image_tag_steps(storage, mode, tag)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册