@nathan it seems that one of my interemediate feature maps is larger than 2MB and that it was the source of the problem. I reduced the size of the network and now it is transformed to kmodel correctly.