Can't set batch_first=true in torch::nn::TransformerOptions?

I want to use Transformer by LibTorch, and want to set batch_first=true, But

torch::nn::TransformerOptions options(512, 8);
options.batch_first(true); // no such method in torch::nn::TransformerOptions

Can anyone help me solve this problem? Thanks in advance.