@epfml/discojs-web 3.0.1-p20240805130603.0 → 3.0.1-p20240809121000.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/memory/memory.d.ts +4 -4
- package/package.json +1 -1
package/dist/memory/memory.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as tf from '@tensorflow/tfjs';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Model, ModelInfo, ModelSource } from '@epfml/discojs';
|
|
3
3
|
import { Memory } from '@epfml/discojs';
|
|
4
4
|
export declare class IndexedDB extends Memory {
|
|
5
|
-
getModelMemoryPath(source: ModelSource):
|
|
5
|
+
getModelMemoryPath(source: ModelSource): string;
|
|
6
6
|
getModelInfo(source: ModelSource): ModelInfo;
|
|
7
7
|
getModelMetadata(source: ModelSource): Promise<tf.io.ModelArtifactsInfo | undefined>;
|
|
8
8
|
contains(source: ModelSource): Promise<boolean>;
|
|
@@ -19,8 +19,8 @@ export declare class IndexedDB extends Memory {
|
|
|
19
19
|
* Creates a saved copy of the working model corresponding to the source.
|
|
20
20
|
* @param source the source
|
|
21
21
|
*/
|
|
22
|
-
saveWorkingModel(source: ModelSource): Promise<
|
|
23
|
-
saveModel(source: ModelSource, model: Model): Promise<
|
|
22
|
+
saveWorkingModel(source: ModelSource): Promise<string>;
|
|
23
|
+
saveModel(source: ModelSource, model: Model): Promise<string>;
|
|
24
24
|
/**
|
|
25
25
|
* Downloads the model corresponding to the source.
|
|
26
26
|
* @param source the source
|