Open ashishverma818 opened 3 years ago
Trying to save the model using tf.keras.models.save_model leads to a TypeError:
File "detr_tf/networks/transformer.py", line 211, in call key_mem = memory + pos_encoding TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'
Better way is to use save_weights and use load_weights with the architecture,the above issue comes with a custom built model/layer
Trying to save the model using tf.keras.models.save_model leads to a TypeError:
File "detr_tf/networks/transformer.py", line 211, in call key_mem = memory + pos_encoding TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'