* @param modelUrl url for the model, or an `io.IOHandler`. * @param weightManifestUrl url for the weight file generated by * scripts/convert.py script. * @param requestOption options for Request, which allows to send credentials * and custom headers. * @param onProgress Optional, prog
(
private modelUrl: ModelURL, private loadOptions: io.LoadOptions = {},
tfio = io)
| 102 | * before the load is completed. |
| 103 | */ |
| 104 | constructor( |
| 105 | private modelUrl: ModelURL, private loadOptions: io.LoadOptions = {}, |
| 106 | tfio = io) { |
| 107 | this.io = tfio; |
| 108 | if (loadOptions == null) { |
| 109 | this.loadOptions = {}; |
| 110 | } |
| 111 | this.resourceManager = new ResourceManager(); |
| 112 | } |
| 113 | |
| 114 | private findIOHandler() { |
| 115 | type IOHandler = UrlIOHandler<ModelURL>; |
nothing calls this directly
no outgoing calls
no test coverage detected