Skip to content

Commit 818d672

Browse files
shmishra99mattsoulanilleLinchennpyu10055
authored
Fixed typos in documentation string. (#7782)
* Migrate stale management probot to Github action * Migrate stale management probot to Github action * Fixed typos in documentation string. * Fixed typos in documentation string. --------- Co-authored-by: Matthew Soulanille <msoulanille@google.com> Co-authored-by: Linchenn <40653845+Linchenn@users.noreply.github.com> Co-authored-by: Ping Yu <4018+pyu10055@users.noreply.github.com>
1 parent 45f1a86 commit 818d672

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

tfjs-converter/src/executor/graph_executor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ export class GraphExecutor implements FunctionExecutor {
452452
* @param isFunctionExecution Optional. Flag for executing a function.
453453
* @param tensorArrayMap Optional, global TensorArray map by id. Used for
454454
* function execution.
455-
* @param tensorArrayMap Optinal global TensorList map by id. Used for
455+
* @param tensorArrayMap Optional global TensorList map by id. Used for
456456
* function execution.
457457
*/
458458
private async _executeAsync(

tfjs-converter/src/executor/graph_model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export class GraphModel<ModelURL extends Url = string | io.IOHandler> implements
319319
* Execute the inference for the input tensors.
320320
*
321321
* @param input The input tensors, when there is single input for the model,
322-
* inputs param should be a `tf.Tensor`. For models with mutliple inputs,
322+
* inputs param should be a `tf.Tensor`. For models with multiple inputs,
323323
* inputs params should be in either `tf.Tensor`[] if the input order is
324324
* fixed, or otherwise NamedTensorMap format.
325325
*

tfjs-converter/src/executor/tensor_array.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export class TensorArray {
240240

241241
/**
242242
* Scatter the values of a Tensor in specific indices of a TensorArray.
243-
* @param indices nummber[] values in [0, max_value). If the
243+
* @param indices number[] values in [0, max_value). If the
244244
* TensorArray is not dynamic, max_value=size().
245245
* @param tensor Tensor input tensor.
246246
*/

tfjs-converter/src/operations/executors/hash_table_executor_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ describe('hash_table', () => {
262262
const before = memory().numTensors;
263263
try {
264264
await executeOp(node, {input3, input5}, context, resourceManager);
265-
fail('Shoudl fail, succeed unexpectedly.');
265+
fail('Should fail, succeed unexpectedly.');
266266
} catch (err) {
267267
expect(err).toMatch(/Expect key dtype/);
268268
}

tfjs-tfdf/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ tfjs_bundle(
4848
],
4949
)
5050

51-
# Copy ouput files to dist/.
51+
# Copy output files to dist/.
5252
copy_ts_library_to_dist(
5353
name = "copy_src_to_dist",
5454
srcs = [

tfjs-tfdf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Tensorflow Decision Forests support for Tensorflow.js
22

3-
This package enables users to run arbitary Tensorflow Decision Forests models
3+
This package enables users to run arbitrary Tensorflow Decision Forests models
44
on the web that are converted using tfjs-converter.
55
Users can load a TFDF model from a URL, use TFJS tensors to set
66
the model's input data, run inference, and get the output back in TFJS tensors.

tfjs-vis/demos/mnist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ <h2>The Visor</h2>
9494
<li>
9595
<strong>`</strong> (backtick): Shows or hides the visor</li>
9696
<li>
97-
<strong>~</strong> (tilde, shift+backtick): Toggles betweeen the two sizes the visor supports</li>
97+
<strong>~</strong> (tilde, shift+backtick): Toggles between the two sizes the visor supports</li>
9898
</ul>
9999
The API allows you to disable (unbind) these keyboard shortcuts.
100100
</p>
@@ -317,7 +317,7 @@ <h3>Customizing training charts.</h3>
317317
<section>
318318
<h2>Evaluating Our Model</h2>
319319
<p>
320-
Now that our model is trained we should evalute its performance. For a classification task like this one we can
320+
Now that our model is trained we should evaluate its performance. For a classification task like this one we can
321321
use the `perClassAccuracy`
322322
and `confusionMatrix` functions. These are demonstrated below.
323323
</p>

tfjs-vis/src/components/surface.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface SurfaceProps extends SurfaceInfoStrict {
2727
}
2828

2929
/**
30-
* A surface is container for visualizations and other rendered thigns.
30+
* A surface is container for visualizations and other rendered things.
3131
* It consists of a containing DOM Element, a label and an empty drawArea.
3232
*/
3333
export class SurfaceComponent extends Component<SurfaceProps> {

tfjs-vis/src/components/visor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ interface VisorProps {
2828
// objects that allow configuration of the surface. The actual surface
2929
// instance is managed by the visor.
3030
surfaceList: SurfaceInfoStrict[];
31-
// Whether to inialize the visor to the open or closed state. Optional.
31+
// Whether to initialize the visor to the open or closed state. Optional.
3232
startOpen?: boolean;
3333
// A ref handler
3434
ref?: (r: VisorComponent) => void;

tfjs-vis/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ export interface VisOptions {
141141
*/
142142
export interface XYPlotOptions extends VisOptions {
143143
/**
144-
* domain of the x axis. Overriden by zoomToFit
144+
* domain of the x axis. Overridden by zoomToFit
145145
*/
146146
xAxisDomain?: [number, number];
147147
/**
148-
* domain of the y axis. Overriden by zoomToFit
148+
* domain of the y axis. Overridden by zoomToFit
149149
*/
150150
yAxisDomain?: [number, number];
151151
/**

0 commit comments

Comments
 (0)