This is an automated email from the ASF dual-hosted git repository.

chrishkchris pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/singa.git


The following commit(s) were added to refs/heads/master by this push:
     new dde1838  fix the model of pad from bytes to str
     new 79014c7  Merge pull request #825 from joddiy/fix
dde1838 is described below

commit dde18389c276ab09a923245a88de8b42ae96999f
Author: joddiy <[email protected]>
AuthorDate: Wed Jan 13 16:44:19 2021 +0800

    fix the model of pad from bytes to str
---
 python/singa/sonnx.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/singa/sonnx.py b/python/singa/sonnx.py
index 6ff7cef..01d704a 100755
--- a/python/singa/sonnx.py
+++ b/python/singa/sonnx.py
@@ -1209,7 +1209,7 @@ class SingaBackend(Backend):
         Returns: 
             singa operator instance
         """
-        mode = onnx_node.getattr("mode", "constant")
+        mode = utils.force_unicode(onnx_node.getattr("mode", "constant"))
         onnx_node.set_attr_inputs(onnx_node.inputs[1], 'pads')
         if len(onnx_node.inputs) == 3:
             onnx_node.set_attr_inputs(onnx_node.inputs[2], 'constant')

Reply via email to