fc_layer_weights
Calculate fully connected layer weight count from input shape and neuron count, including bias terms, to size neural-network layers precisely.
Instructions
Weights in a fully connected layer: (inputs + 1) × neurons.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_shape": "<input_shape>",
"n_neurons": "<n_neurons>"
},
"name": "fc_layer_weights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n_neurons | Yes | ||
| input_shape | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |