Thanks a lot for your reply.I was told that .h5 models can be used in DL4J.But its throwing an error.