-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hgf bert #9
Hgf bert #9
Conversation
Merge branch 'gsoc2020' into hgf_bert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such a great job!
@@ -0,0 +1,30 @@ | |||
using JSON |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSON3 has great support for de/serializing AbstractDict, see: https://quinnj.github.io/JSON3.jl/stable/#StructTypes.DictType-1 . (No need to change here, just a gentle reminder.😃 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the different between using JSON and JSON3 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since that AbstractHGFConfig is already a subtype of AbstractDict, I guess with JSON3, https://github.com/chengchingwen/Transformers.jl/pull/9/files/dac873007f6289b7e0f74f6a70ac22f3905c43ff#diff-56f47ab93bc96fbe6afa99bce9821a9aR11-R28 this part can be slightly simplified.
No description provided.