koushikkonwar / Few-Shot-

Few shot learning in NLP
11 stars 11 forks source link

fit_generator #2

Open shohre10539 opened 3 years ago

shohre10539 commented 3 years ago

Trying to run this notebook I got the error 'generator' object has no attribute 'ndim' when fitting the model on train data, so I changed fit to fit_generator. Now I am stuck getting this error: Tensor("Embeddings/sharded_0:0", shape=(), dtype=resource) must be from the same graph as Tensor("Const:0", shape=(128,), dtype=string). the stack tells me that this error occurs when calling embed(a).