Skip to content

Address tfjs-automl typos in documentation strings #8219

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

Merged
merged 1 commit into from
Apr 12, 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
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