Open minwg1021 opened 4 months ago
Hello, I don't see any input_spec
layer in your code. Can you provide the full error message trace?
Traceback (most recent call last):
File "d:\Research\extra\src\DL\AutoEncoder\[2024-06-04]CVNN_ae\tmp.py", line 19, in <module>
model.add(complex_layers.ComplexConv2D(32, (3, 3), activation='relu'))
File "C:\Users\USER\anaconda3\envs\cvnn\lib\site-packages\cvnn\layers.py", line 717, in __init__
super(ComplexConv2D, self).__init__(
File "C:\Users\USER\anaconda3\envs\cvnn\lib\site-packages\cvnn\layers.py", line 329, in __init__
self.input_spec = InputSpec(min_ndim=self.rank + 2)
File "C:\Users\USER\anaconda3\envs\cvnn\lib\site-packages\keras\engine\base_layer.py", line 3075, in __setattr__
super(tf.__internal__.tracking.AutoTrackable, self).__setattr__(
File "C:\Users\USER\anaconda3\envs\cvnn\lib\site-packages\tensorflow\python\trackable\base.py", line 205, in _method_wrapper
result = method(self, *args, **kwargs)
File "C:\Users\USER\anaconda3\envs\cvnn\lib\site-packages\keras\engine\base_layer.py", line 1243, in input_spec
raise TypeError(
TypeError: Layer input_spec must be an instance of InputSpec. Got: InputSpec(min_ndim=4)
Thank you for your response! The error message shown above is the entire error message trace.
Hello! I have a question about the Input Spec. The code above is the example code provided in the Doc. When I run the code, I get the following error: TypeError: Layer input_spec must be an instance of InputSpec. Got: InputSpec(min_ndim=4) Is there a way to resolve this issue?
I will be waiting for your response. Thank you!