Restrict backpropagation in specific indices in nn.Embedding

In nn.Embedding can we provide an option so that specific indices are never updated? Like a mask for example?