Fix a few typing mistakes.
"source": [
"def federated_indexed_slices_sum(slice_indices, slice_values, dense_shape):\n",
" \"\"\"\n",
- " Sumes IndexedSlices@CLIENTS to a dense @SERVER Tensor.\n",
+ " Sums IndexedSlices@CLIENTS to a dense @SERVER Tensor.\n",
"\n",
" Intermediate aggregation is performed by converting to a dense representation,\n",
" which may not be suitable for all applications.\n",
},
"source": [
"# Putting it all together in a `federated_computation`\n",
- "We now uses TFF to bind together the components into a `tff.federated_computation`.\n"
+ "We now use TFF to bind together the components into a `tff.federated_computation`.\n"
]
},
{
" actual_num_tokens):\n",
" # Note this is amaller than the global model, using\n",
" # MAX_TOKENS_SELECTED_PER_CLIENT which is much smaller than WORD_VOCAB_SIZE.\n",
- " # W7e would like a model of size `actual_num_tokens`, but we\n",
+ " # We would like a model of size `actual_num_tokens`, but we\n",
" # can't build the model dynamically, so we will slice off the padded\n",
" # weights at the end.\n",
" client_model = create_logistic_model(MAX_TOKENS_SELECTED_PER_CLIENT,\n",
