SebastianBoblest commented on PR #12028: URL: https://github.com/apache/tvm/pull/12028#issuecomment-1203989596
> > > > > Not work casue it will result in `RuntimeError: Boolean value of Tensor with more than one value is ambiguous` as [ci_60](https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/PR-12028/60/tests) show. Ok in this case you might need the more explicit form of this: input_data = [] if input_data is None else input_data Often, the shortened version input_data = input_data or [] is used, however, it has a problem with complex expressions like tensors or numpy arrays that cannot be simply evaluated to True or False. Sorry for that, that was actually my fault. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
