cnn_layer_size
Computes convolutional layer output dimensions, neuron count, and shared weight count from input shape, filter size, stride, padding, and filter count.
Instructions
Convolutional layer output volume, number of neurons and number of (shared) weights. input_shape: [A, B, C]; filter_size: [P, Q] or [P, Q, C].
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>",
"filter_size": "<filter_size>",
"n_filters": "<n_filters>"
},
"name": "cnn_layer_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stride | No | ||
| padding | No | ||
| n_filters | Yes | ||
| filter_size | Yes | ||
| input_shape | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |