Skip to content

Commit

Permalink
Merge pull request #2279 from thapasusheel:patch
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 606672806
  • Loading branch information
copybara-github committed Feb 13, 2024
2 parents 42550ed + 3a09083 commit e58176a
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion site/en/guide/migrate/evaluator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"\n",
"In TensorFlow 1, you can configure a `tf.estimator` to evaluate the estimator using `tf.estimator.train_and_evaluate`.\n",
"\n",
"In this example, start by defining the `tf.estimator.Estimator` and speciyfing training and evaluation specifications:"
"In this example, start by defining the `tf.estimator.Estimator` and specifying training and evaluation specifications:"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion site/en/guide/sparse_tensor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@
"\n",
"However, there are a few cases where it can be useful to distinguish zero values from missing values. In particular, this allows for one way to encode missing/unknown data in your training data. For example, consider a use case where you have a tensor of scores (that can have any floating point value from -Inf to +Inf), with some missing scores. You can encode this tensor using a sparse tensor where the explicit zeros are known zero scores but the implicit zero values actually represent missing data and not zero. \n",
"\n",
"Note: This is generally not the intended usage of `tf.sparse.SparseTensor`s; and you might want to also consier other techniques for encoding this such as for example using a separate mask tensor that identifies the locations of known/unknown values. However, exercise caution while using this approach, since most sparse operations will treat explicit and implicit zero values identically."
"Note: This is generally not the intended usage of `tf.sparse.SparseTensor`s; and you might want to also consider other techniques for encoding this such as for example using a separate mask tensor that identifies the locations of known/unknown values. However, exercise caution while using this approach, since most sparse operations will treat explicit and implicit zero values identically."
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions site/en/guide/tf_numpy_type_promotion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
"* `f32*` means Python `float` or weakly-typed `f32`\n",
"* `c128*` means Python `complex` or weakly-typed `c128`\n",
"\n",
"The asterik (*) denotes that the corresponding type is “weak” - such a dtype is temporarily inferred by the system, and could defer to other dtypes. This concept is explained more in detail [here](#weak_tensor)."
"The asterisk (*) denotes that the corresponding type is “weak” - such a dtype is temporarily inferred by the system, and could defer to other dtypes. This concept is explained more in detail [here](#weak_tensor)."
]
},
{
Expand Down Expand Up @@ -449,7 +449,7 @@
"source": [
"### WeakTensor Construction\n",
"\n",
"WeakTensors are created if you create a tensor without specifing a dtype the result is a WeakTensor. You can check whether a Tensor is \"weak\" or not by checking the weak attribute at the end of the Tensor's string representation."
"WeakTensors are created if you create a tensor without specifying a dtype the result is a WeakTensor. You can check whether a Tensor is \"weak\" or not by checking the weak attribute at the end of the Tensor's string representation."
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion site/en/hub/tutorials/s3gan_generation_with_tf_hub.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"2. Click **Runtime > Run all** to run each cell in order.\n",
" * Afterwards, the interactive visualizations should update automatically when you modify the settings using the sliders and dropdown menus.\n",
"\n",
"Note: if you run into any issues, youn can try restarting the runtime and rerunning all cells from scratch by clicking **Runtime > Restart and run all...**.\n",
"Note: if you run into any issues, you can try restarting the runtime and rerunning all cells from scratch by clicking **Runtime > Restart and run all...**.\n",
"\n",
"[1] Mario Lucic\\*, Michael Tschannen\\*, Marvin Ritter\\*, Xiaohua Zhai, Olivier\n",
" Bachem, Sylvain Gelly, [High-Fidelity Image Generation With Fewer Labels](https://arxiv.org/abs/1903.02271), ICML 2019."
Expand Down
2 changes: 1 addition & 1 deletion site/en/hub/tutorials/wiki40b_lm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
" # Generate the tokens from the language model\n",
" generation_outputs = module(generation_input_dict, signature=\"prediction\", as_dict=True)\n",
"\n",
" # Get the probablities and the inputs for the next steps\n",
" # Get the probabilities and the inputs for the next steps\n",
" probs = generation_outputs[\"probs\"]\n",
" new_mems = [generation_outputs[\"new_mem_{}\".format(i)] for i in range(n_layer)]\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion site/en/r1/guide/autograph.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
"id": "m-jWmsCmByyw"
},
"source": [
"AutoGraph supports common Python statements like `while`, `for`, `if`, `break`, and `return`, with support for nesting. Compare this function with the complicated graph verson displayed in the following code blocks:"
"AutoGraph supports common Python statements like `while`, `for`, `if`, `break`, and `return`, with support for nesting. Compare this function with the complicated graph version displayed in the following code blocks:"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions site/en/r1/guide/distribute_strategy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"## Types of strategies\n",
"`tf.distribute.Strategy` intends to cover a number of use cases along different axes. Some of these combinations are currently supported and others will be added in the future. Some of these axes are:\n",
"\n",
"* Syncronous vs asynchronous training: These are two common ways of distributing training with data parallelism. In sync training, all workers train over different slices of input data in sync, and aggregating gradients at each step. In async training, all workers are independently training over the input data and updating variables asynchronously. Typically sync training is supported via all-reduce and async through parameter server architecture.\n",
"* Synchronous vs asynchronous training: These are two common ways of distributing training with data parallelism. In sync training, all workers train over different slices of input data in sync, and aggregating gradients at each step. In async training, all workers are independently training over the input data and updating variables asynchronously. Typically sync training is supported via all-reduce and async through parameter server architecture.\n",
"* Hardware platform: Users may want to scale their training onto multiple GPUs on one machine, or multiple machines in a network (with 0 or more GPUs each), or on Cloud TPUs.\n",
"\n",
"In order to support these use cases, we have 4 strategies available. In the next section we will talk about which of these are supported in which scenarios in TF."
Expand Down Expand Up @@ -371,7 +371,7 @@
"id": "hQv1lm9UPDFy"
},
"source": [
"So far we've talked about what are the different stategies available and how you can instantiate them. In the next few sections, we will talk about the different ways in which you can use them to distribute your training. We will show short code snippets in this guide and link off to full tutorials which you can run end to end."
"So far we've talked about what are the different strategies available and how you can instantiate them. In the next few sections, we will talk about the different ways in which you can use them to distribute your training. We will show short code snippets in this guide and link off to full tutorials which you can run end to end."
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions site/en/r1/tutorials/representation/unicode.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"id": "jsMPnjb6UDJ1"
},
"source": [
"Note: When using python to construct strings, the handling of unicode differs betweeen v2 and v3. In v2, unicode strings are indicated by the \"u\" prefix, as above. In v3, strings are unicode-encoded by default."
"Note: When using python to construct strings, the handling of unicode differs between v2 and v3. In v2, unicode strings are indicated by the \"u\" prefix, as above. In v3, strings are unicode-encoded by default."
]
},
{
Expand Down Expand Up @@ -587,7 +587,7 @@
"id": "CapnbShuGU8i"
},
"source": [
"First, we decode the sentences into character codepoints, and find the script identifeir for each character."
"First, we decode the sentences into character codepoints, and find the script identifier for each character."
]
},
{
Expand Down

0 comments on commit e58176a

Please sign in to comment.