Skip to content

Commit 94eb68d

Browse files
committed
weigths*weights
1 parent 243e687 commit 94eb68d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/source/migration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ loss = outputs[0]
2727
# In transformers you can also have access to the logits:
2828
loss, logits = outputs[:2]
2929

30-
# And even the attention weigths if you configure the model to output them (and other outputs too, see the docstrings and documentation)
30+
# And even the attention weights if you configure the model to output them (and other outputs too, see the docstrings and documentation)
3131
model = BertForSequenceClassification.from_pretrained('bert-base-uncased', output_attentions=True)
3232
outputs = model(input_ids, labels=labels)
3333
loss, logits, attentions = outputs

src/transformers/modeling_transfo_xl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def load_tf_weights_in_transfo_xl(model, config, tf_path):
136136
if "kernel" in name or "proj" in name:
137137
array = np.transpose(array)
138138
if ("r_r_bias" in name or "r_w_bias" in name) and len(pointer) > 1:
139-
# Here we will split the TF weigths
139+
# Here we will split the TF weights
140140
assert len(pointer) == array.shape[0]
141141
for i, p_i in enumerate(pointer):
142142
arr_i = array[i, ...]

src/transformers/modeling_xlnet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def load_tf_weights_in_xlnet(model, config, tf_path):
156156
logger.info("Transposing")
157157
array = np.transpose(array)
158158
if isinstance(pointer, list):
159-
# Here we will split the TF weigths
159+
# Here we will split the TF weights
160160
assert len(pointer) == array.shape[0]
161161
for i, p_i in enumerate(pointer):
162162
arr_i = array[i, ...]

templates/adding_a_new_model/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ You can then finish the addition step by adding imports for your classes in the
5959
- [ ] add a link to your conversion script in the main conversion utility (in `commands/convert.py`)
6060
- [ ] edit the PyTorch to TF 2.0 conversion script to add your model in the `convert_pytorch_checkpoint_to_tf2.py` file
6161
- [ ] add a mention of your model in the doc: `README.md` and the documentation itself at `docs/source/pretrained_models.rst`.
62-
- [ ] upload the pretrained weigths, configurations and vocabulary files.
62+
- [ ] upload the pretrained weights, configurations and vocabulary files.

0 commit comments

Comments
 (0)