* Remove a model specified by URL from a registered storage medium. * * ```js * // First create and save a model. * const model = tf.sequential(); * model.add(tf.layers.dense( * {units: 1, inputShape: [10], activation: 'sigmoid'})); * await model.save('localstorage://demo/management/model
(url: string)
| 243 | * } |
| 244 | */ |
| 245 | async function removeModel(url: string): Promise<ModelArtifactsInfo> { |
| 246 | const schemeAndPath = parseURL(url); |
| 247 | const manager = ModelStoreManagerRegistry.getManager(schemeAndPath.scheme); |
| 248 | return manager.removeModel(schemeAndPath.path); |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * Copy a model from one URL to another. |
nothing calls this directly
no test coverage detected
searching dependent graphs…