Skip to content

Commit

Permalink
Address tfjs-automl typos in documentation strings (#8219)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaikwadrahul8 authored Apr 12, 2024
1 parent 3fbd65e commit baf2364
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tfjs-automl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ const modelUrl = 'model.json'; // URL to the model.json file.
const model = await automl.loadImageClassification(modelUrl);
```

If you do not want (or cannot) load the model over HTTP you can also load the model separately and directly use the constuctor.
If you do not want (or cannot) load the model over HTTP you can also load the model separately and directly use the constructor.
This is particularly relevant for __non-browser__ platforms.

The following psuedocode demonstrates this approach:
The following pseudocode demonstrates this approach:

```js
import * as automl from '@tensorflow/tfjs-automl';
Expand Down Expand Up @@ -138,10 +138,10 @@ const modelUrl = 'model.json'; // URL to the model.json file.
const model = await automl.loadObjectDetection(modelUrl);
```

If you do not want (or cannot) load the model over HTTP you can also load the model separately and directly use the constuctor.
If you do not want (or cannot) load the model over HTTP you can also load the model separately and directly use the constructor.
This is particularly relevant for __non-browser__ platforms.

The following psuedocode demonstrates this approach:
The following pseudocode demonstrates this approach:

```js
import * as automl from '@tensorflow/tfjs-automl';
Expand Down
2 changes: 1 addition & 1 deletion tfjs-automl/src/test_browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const testEnv = parseTestEnvFromKarmaFlags(__karma__.config.args, TEST_ENVS);
if (testEnv != null) {
setTestEnvs([testEnv]);
} else {
// Run browser tests againts both the webgl backends.
// Run browser tests against both the webgl backends.
setTestEnvs([
// WebGL.
{
Expand Down
2 changes: 1 addition & 1 deletion tfjs-automl/src/test_node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ process.on('unhandledRejection', e => {
throw e;
});

// Run node tests againts the cpu backend.
// Run node tests against the cpu backend.
setTestEnvs([{name: 'node', backendName: 'cpu'}]);

const runner = new jasmine();
Expand Down

0 comments on commit baf2364

Please sign in to comment.