# Deep feature could be taken from the last hidden state or pooled_output deep_feature = outputs.last_hidden_state[:, 0, :] # Take CLS token representation print(deep_feature.shape)
# Deep feature could be taken from the last hidden state or pooled_output deep_feature = outputs.last_hidden_state[:, 0, :] # Take CLS token representation print(deep_feature.shape)