Choosing Cost function

How can I put "Cross entropy " as loss/cost function?

That’s the default loss when training a NMT model.