Browse Source

decode the dims of tensor

tags/v1.2.0-rc1
shenghong96 4 years ago
parent
commit
60fb8a9db9
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