I got ' 'str' object has no attribute 'dim'' by simply running the notebook. I figured it out by looking at this. It seems either specifying 'return_dict=False' or calling 'values()' method could force the bert model to return a tuple. Hope this helps.
I got ' 'str' object has no attribute 'dim'' by simply running the notebook. I figured it out by looking at this. It seems either specifying 'return_dict=False' or calling 'values()' method could force the bert model to return a tuple. Hope this helps.