Browse Source

!1089 decode the dims of tensor

From: @shenghong96
Reviewed-by: @wenkai_dist,@wangyue01
Signed-off-by: @wangyue01
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 4 years ago
parent
commit
555f262355
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      mindinsight/datavisual/processors/tensor_processor.py

+ 5
- 0
mindinsight/datavisual/processors/tensor_processor.py View File

@@ -50,6 +50,11 @@ class TensorProcessor(BaseProcessor):
"""
Validation.check_param_empty(train_id=train_ids, tag=tags)

try:
dims = unquote(dims, errors='strict') if dims else None
except UnicodeDecodeError:
raise UrlDecodeError('Unquote dims error with strict mode')

for index, train_id in enumerate(train_ids):
try:
train_id = unquote(train_id, errors='strict')


Loading…
Cancel
Save