self.opt["kernel_sizes_cnn"].split(" ")]
if type(self.opt["filters_cnn"]) is str:
self.opt["filters_cnn"] = [int(x)for x in
self.opt["filters_cnn"].split(" ")]
inp = Input(shape=(params["text_size"], params["embedding_size"]))
After Change
Uncompiled model
if type(self.opt["kernel_sizes_cnn"]) is str:
self.opt["kernel_sizes_cnn"] = list(map(int, self.opt["kernel_sizes_cnn"].split()))
if type(self.opt["filters_cnn"]) is str:
self.opt["filters_cnn"] = list(map(int, self.opt["filters_cnn"].split()))