From 818d672e1b5f3153beb1c3bc656c077c7d1f58d8 Mon Sep 17 00:00:00 2001
From: Shivam Mishra <124146945+shmishra99@users.noreply.github.com>
Date: Tue, 6 Feb 2024 00:11:41 +0530
Subject: [PATCH] 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
Co-authored-by: Linchenn <40653845+Linchenn@users.noreply.github.com>
Co-authored-by: Ping Yu <4018+pyu10055@users.noreply.github.com>
---
tfjs-converter/src/executor/graph_executor.ts | 2 +-
tfjs-converter/src/executor/graph_model.ts | 2 +-
tfjs-converter/src/executor/tensor_array.ts | 2 +-
.../src/operations/executors/hash_table_executor_test.ts | 2 +-
tfjs-tfdf/BUILD.bazel | 2 +-
tfjs-tfdf/README.md | 2 +-
tfjs-vis/demos/mnist/index.html | 4 ++--
tfjs-vis/src/components/surface.tsx | 2 +-
tfjs-vis/src/components/visor.tsx | 2 +-
tfjs-vis/src/types.ts | 4 ++--
10 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/tfjs-converter/src/executor/graph_executor.ts b/tfjs-converter/src/executor/graph_executor.ts
index 52f7d481e8a..da34b1d692c 100644
--- a/tfjs-converter/src/executor/graph_executor.ts
+++ b/tfjs-converter/src/executor/graph_executor.ts
@@ -452,7 +452,7 @@ export class GraphExecutor implements FunctionExecutor {
* @param isFunctionExecution Optional. Flag for executing a function.
* @param tensorArrayMap Optional, global TensorArray map by id. Used for
* function execution.
- * @param tensorArrayMap Optinal global TensorList map by id. Used for
+ * @param tensorArrayMap Optional global TensorList map by id. Used for
* function execution.
*/
private async _executeAsync(
diff --git a/tfjs-converter/src/executor/graph_model.ts b/tfjs-converter/src/executor/graph_model.ts
index 95334467706..70a26719a65 100644
--- a/tfjs-converter/src/executor/graph_model.ts
+++ b/tfjs-converter/src/executor/graph_model.ts
@@ -319,7 +319,7 @@ export class GraphModel implements
* Execute the inference for the input tensors.
*
* @param input The input tensors, when there is single input for the model,
- * inputs param should be a `tf.Tensor`. For models with mutliple inputs,
+ * inputs param should be a `tf.Tensor`. For models with multiple inputs,
* inputs params should be in either `tf.Tensor`[] if the input order is
* fixed, or otherwise NamedTensorMap format.
*
diff --git a/tfjs-converter/src/executor/tensor_array.ts b/tfjs-converter/src/executor/tensor_array.ts
index b69553ffb48..21344cbc7c3 100644
--- a/tfjs-converter/src/executor/tensor_array.ts
+++ b/tfjs-converter/src/executor/tensor_array.ts
@@ -240,7 +240,7 @@ export class TensorArray {
/**
* Scatter the values of a Tensor in specific indices of a TensorArray.
- * @param indices nummber[] values in [0, max_value). If the
+ * @param indices number[] values in [0, max_value). If the
* TensorArray is not dynamic, max_value=size().
* @param tensor Tensor input tensor.
*/
diff --git a/tfjs-converter/src/operations/executors/hash_table_executor_test.ts b/tfjs-converter/src/operations/executors/hash_table_executor_test.ts
index 64cc3d12ed6..1d4b1972f78 100644
--- a/tfjs-converter/src/operations/executors/hash_table_executor_test.ts
+++ b/tfjs-converter/src/operations/executors/hash_table_executor_test.ts
@@ -262,7 +262,7 @@ describe('hash_table', () => {
const before = memory().numTensors;
try {
await executeOp(node, {input3, input5}, context, resourceManager);
- fail('Shoudl fail, succeed unexpectedly.');
+ fail('Should fail, succeed unexpectedly.');
} catch (err) {
expect(err).toMatch(/Expect key dtype/);
}
diff --git a/tfjs-tfdf/BUILD.bazel b/tfjs-tfdf/BUILD.bazel
index b133797af4d..b9f65832065 100644
--- a/tfjs-tfdf/BUILD.bazel
+++ b/tfjs-tfdf/BUILD.bazel
@@ -48,7 +48,7 @@ tfjs_bundle(
],
)
-# Copy ouput files to dist/.
+# Copy output files to dist/.
copy_ts_library_to_dist(
name = "copy_src_to_dist",
srcs = [
diff --git a/tfjs-tfdf/README.md b/tfjs-tfdf/README.md
index 81d196f44d6..7096864fb29 100644
--- a/tfjs-tfdf/README.md
+++ b/tfjs-tfdf/README.md
@@ -1,6 +1,6 @@
# Tensorflow Decision Forests support for Tensorflow.js
-This package enables users to run arbitary Tensorflow Decision Forests models
+This package enables users to run arbitrary Tensorflow Decision Forests models
on the web that are converted using tfjs-converter.
Users can load a TFDF model from a URL, use TFJS tensors to set
the model's input data, run inference, and get the output back in TFJS tensors.
diff --git a/tfjs-vis/demos/mnist/index.html b/tfjs-vis/demos/mnist/index.html
index 6ecf19ea990..b51a164746b 100644
--- a/tfjs-vis/demos/mnist/index.html
+++ b/tfjs-vis/demos/mnist/index.html
@@ -94,7 +94,7 @@ The Visor
` (backtick): Shows or hides the visor
- ~ (tilde, shift+backtick): Toggles betweeen the two sizes the visor supports
+ ~ (tilde, shift+backtick): Toggles between the two sizes the visor supports
The API allows you to disable (unbind) these keyboard shortcuts.
@@ -317,7 +317,7 @@ Customizing training charts.
Evaluating Our Model
- Now that our model is trained we should evalute its performance. For a classification task like this one we can
+ Now that our model is trained we should evaluate its performance. For a classification task like this one we can
use the `perClassAccuracy`
and `confusionMatrix` functions. These are demonstrated below.
diff --git a/tfjs-vis/src/components/surface.tsx b/tfjs-vis/src/components/surface.tsx
index 6eb67bd5f62..56ed114692c 100644
--- a/tfjs-vis/src/components/surface.tsx
+++ b/tfjs-vis/src/components/surface.tsx
@@ -27,7 +27,7 @@ interface SurfaceProps extends SurfaceInfoStrict {
}
/**
- * A surface is container for visualizations and other rendered thigns.
+ * A surface is container for visualizations and other rendered things.
* It consists of a containing DOM Element, a label and an empty drawArea.
*/
export class SurfaceComponent extends Component {
diff --git a/tfjs-vis/src/components/visor.tsx b/tfjs-vis/src/components/visor.tsx
index d9df73665f7..4a7ff16e85f 100644
--- a/tfjs-vis/src/components/visor.tsx
+++ b/tfjs-vis/src/components/visor.tsx
@@ -28,7 +28,7 @@ interface VisorProps {
// objects that allow configuration of the surface. The actual surface
// instance is managed by the visor.
surfaceList: SurfaceInfoStrict[];
- // Whether to inialize the visor to the open or closed state. Optional.
+ // Whether to initialize the visor to the open or closed state. Optional.
startOpen?: boolean;
// A ref handler
ref?: (r: VisorComponent) => void;
diff --git a/tfjs-vis/src/types.ts b/tfjs-vis/src/types.ts
index c06a47d4b34..7af39c38f41 100644
--- a/tfjs-vis/src/types.ts
+++ b/tfjs-vis/src/types.ts
@@ -141,11 +141,11 @@ export interface VisOptions {
*/
export interface XYPlotOptions extends VisOptions {
/**
- * domain of the x axis. Overriden by zoomToFit
+ * domain of the x axis. Overridden by zoomToFit
*/
xAxisDomain?: [number, number];
/**
- * domain of the y axis. Overriden by zoomToFit
+ * domain of the y axis. Overridden by zoomToFit
*/
yAxisDomain?: [number, number];
/**