Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typos in documentation string. #7782

Merged
merged 14 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tfjs-converter/src/executor/graph_executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tfjs-converter/src/executor/graph_model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export class GraphModel<ModelURL extends Url = string | io.IOHandler> 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.
*
Expand Down
2 changes: 1 addition & 1 deletion tfjs-converter/src/executor/tensor_array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/);
}
Expand Down
2 changes: 1 addition & 1 deletion tfjs-tfdf/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion tfjs-tfdf/README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions tfjs-vis/demos/mnist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h2>The Visor</h2>
<li>
<strong>`</strong> (backtick): Shows or hides the visor</li>
<li>
<strong>~</strong> (tilde, shift+backtick): Toggles betweeen the two sizes the visor supports</li>
<strong>~</strong> (tilde, shift+backtick): Toggles between the two sizes the visor supports</li>
</ul>
The API allows you to disable (unbind) these keyboard shortcuts.
</p>
Expand Down Expand Up @@ -317,7 +317,7 @@ <h3>Customizing training charts.</h3>
<section>
<h2>Evaluating Our Model</h2>
<p>
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.
</p>
Expand Down
2 changes: 1 addition & 1 deletion tfjs-vis/src/components/surface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<SurfaceProps> {
Expand Down
2 changes: 1 addition & 1 deletion tfjs-vis/src/components/visor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions tfjs-vis/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
/**
Expand Down