Hey there i’m trying to build a toy ResNet model, but i’m facing this Error:
TypeError: Failed to convert object of type <class ‘main.ResNetModel’> to Tensor. Contents: <main.ResNetModel object at 0x7f36645e2c18>. Consider casting elements to a supported type.TypeError: Failed to convert object of type <class ‘main.ResNetModel’> to Tensor. Contents: <main.ResNetModel object at 0x7f36645e2c18>. Consider casting elements to a supported type.