提交 9f0872be 编写于 作者: Y Yan Chunwei 提交者: daminglu

bugfix/fix scalar zero (#151)

* fix

* fix lib
上级 027e0cba
......@@ -60,7 +60,11 @@ def get_scalar(storage, mode, tag, num_records=300):
data_idx = int(span_offset * span)
sampled_data.append(data[0])
return sampled_data[::-1]
res = sampled_data[::-1]
# TODO(Superjomn) some bug here, sometimes there are zero here.
if res[-1] == 0.:
res = res[:-1]
return res
def get_image_tags(storage):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册