Files
Alec Helbling 63427be139 Added ability to pass layer_args dictionary to each forward pass, which allows
for arguments to be passed through to each neural network layer when running a neural
network forward pass.
2022-04-25 16:28:11 -04:00

26 lines
790 B
Python

from manim import *
from manim_ml.neural_network.layers.parent_layers import VGroupNeuralNetworkLayer
class ConvolutionalLayer(VGroupNeuralNetworkLayer):
"""Handles rendering a convolutional layer for a nn"""
def __init__(self, num_filters, filter_width, **kwargs):
super(VGroupNeuralNetworkLayer, self).__init__(**kwargs)
self.num_filters = num_filters
self.filter_width = filter_width
self._construct_neural_network_layer()
def _construct_neural_network_layer(self):
"""Creates the neural network layer"""
pass
def make_forward_pass_animation(self, layer_args={}, **kwargs):
# make highlight animation
return None
@override_animation(Create)
def _create_override(self, **kwargs):
pass