@openfluke/welvet 0.1.0 → 0.1.1
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/index.js +1 -0
- package/dist/types.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60,6 +60,7 @@ export async function initLoom(opts = {}) {
|
|
|
60
60
|
const api = {
|
|
61
61
|
NewNetwork: g.NewNetwork,
|
|
62
62
|
LoadModelFromString: g.LoadModelFromString,
|
|
63
|
+
CallLayerInit: g.CallLayerInit, // Direct access to registry-based layer init
|
|
63
64
|
// Layer initialization functions using CallLayerInit (registry-based)
|
|
64
65
|
InitDenseLayer: (inputSize, outputSize, activation) => {
|
|
65
66
|
return callLayerInit("InitDenseLayer", inputSize, outputSize, activation);
|
package/dist/types.d.ts
CHANGED
|
@@ -40,6 +40,13 @@ export interface LoomAPI {
|
|
|
40
40
|
* @returns LoomNetwork instance
|
|
41
41
|
*/
|
|
42
42
|
LoadModelFromString: (modelJSON: string, modelID: string) => LoomNetwork;
|
|
43
|
+
/**
|
|
44
|
+
* Call any layer initialization function from the registry
|
|
45
|
+
* @param functionName - Name of the layer init function (e.g., "InitDenseLayer")
|
|
46
|
+
* @param paramsJSON - JSON string of parameters array
|
|
47
|
+
* @returns JSON string of layer configuration
|
|
48
|
+
*/
|
|
49
|
+
CallLayerInit: (functionName: string, paramsJSON: string) => string;
|
|
43
50
|
/**
|
|
44
51
|
* Initialize a dense (fully-connected) layer configuration
|
|
45
52
|
* @param inputSize - Input dimension
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfluke/welvet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "TypeScript/JavaScript bindings for LOOM neural network framework with WebAssembly support - GPU-accelerated machine learning in the browser",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|