mirror of
https://github.com/helblazer811/ManimML.git
synced 2025-07-15 07:57:41 +08:00
Added working convolutional layer.
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
from manim import *
|
||||
|
||||
from manim_ml.neural_network.layers.parent_layers import BlankConnective
|
||||
from ..layers import connective_layers_list
|
||||
|
||||
def get_connective_layer(input_layer, output_layer):
|
||||
@ -14,7 +16,10 @@ def get_connective_layer(input_layer, output_layer):
|
||||
connective_layer = connective_layer_class(input_layer, output_layer)
|
||||
|
||||
if connective_layer is None:
|
||||
connective_layer = BlankConnective(input_layer, output_layer)
|
||||
"""
|
||||
raise Exception(f"Unrecognized class pair {input_layer.__class__.__name__}" + \
|
||||
f" and {output_layer.__class__.__name__}")
|
||||
"""
|
||||
|
||||
return connective_layer
|
||||
|
Reference in New Issue
Block a user