AndrewZhaoLuo commented on PR #12555:
URL: https://github.com/apache/tvm/pull/12555#issuecomment-1233218163

   > I am sorry, I really can't create an unit test with empty string of 
`constant_value`. @leandron @AndrewZhaoLuo
   
   In verify_pad_v11 I can seem to make the following:
   
   ```
             graph = helper.make_graph(
                   [node],
                   "pad_test",
                   inputs=[
                       helper.make_tensor_value_info("input", 
TensorProto.FLOAT, list(indata.shape)),
                       helper.make_tensor_value_info("pads", TensorProto.INT64, 
(len(pads),)),
                       helper.make_tensor_value_info("constant_value", 
TensorProto.STRING, (1,)),
                   ],
                   initializer=[
                       helper.make_tensor("pads", TensorProto.INT64, 
(len(pads),), pads),
                       helper.make_tensor("constant_value", TensorProto.STRING, 
(1,), [b""]),
                   ],
                   outputs=[
                       helper.make_tensor_value_info("output", 
TensorProto.FLOAT, list(outdata.shape))
                   ],
               )
   ```
   
   However, my version of ONNXRT can't seem to accept the string type. What 
have you tried?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@tvm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to