icemelon9 commented on a change in pull request #4644: Relay op strategy URL: https://github.com/apache/incubator-tvm/pull/4644#discussion_r379874770
########## File path: python/tvm/relay/memory_alloc.py ########## @@ -28,8 +28,8 @@ def is_primitive(call): - return hasattr(call.op, 'attrs') and hasattr(call.op.attrs, 'Primitive') and \ - int(call.op.attrs.Primitive) == 1 + return hasattr(call, 'op') and hasattr(call.op, 'attrs') and \ Review comment: The `call.op` could be primitive `Function` or `Op`. `Op` doesn't have `is_primitive` api. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
