chanwutk commented on pull request #8570:
URL: https://github.com/apache/tvm/pull/8570#issuecomment-890165599


   Currently, we have the modified serialization to output JSON like this:
   ```js
   {
     type_key: 'relay.Call',
     attrs: {
       padding: {node: '10'},
       group: {value: '1'},
       ...other_attrs
     }
   }
   ```
   
   If we output it to not change the structure of `attrs` but add `type_attrs` 
instead, would it be ok?
   This way, we do not break the existing schema for the original 
serialization, but we can still have access to the typing of each attribute
   ```js
   {
     type_key: 'relay.Call',
     attrs: {
       padding: '10',
       group: '1',
       ...other_attrs
     },
     attr_types: {
       padding: 'node',
       group: 'value',
       ...other_attr_types
     }
   }
   ```


-- 
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]


Reply via email to