You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I download your codes and try to run the run.py such as the following command: python scripts/run.py train --model complex --sf 12 --nb 16
However, I have tried the keras version from 2.2.4 to 2.2.0, 2.1.6 2.0.6 ,even to 1.1.0 1.2.0 but it seems that the code part K.sqrt(2) in your code def sqrt_init(shape, dtype=None): value = (1 / K.sqrt(2)) * K.ones(shape) return value (in complexBN/bn.py)
always error such as : AttributeError: 'int' object has no attribute 'dtype'
The text was updated successfully, but these errors were encountered:
@DNNlearner: Thanks, It works for K.constant(2). However, I have another problem
s = np.sqrt(delta) # Determinant of square root matrix
AttributeError: 'Tensor' object has no attribute 'sqrt'
I try to use b = K.constant(delta) , but it didn't work because delta is a matrix
How can we solve it? Thanks for your help
Hi, I download your codes and try to run the run.py such as the following command:
python scripts/run.py train --model complex --sf 12 --nb 16
However, I have tried the keras version from 2.2.4 to 2.2.0, 2.1.6 2.0.6 ,even to 1.1.0 1.2.0 but it seems that the code part
K.sqrt(2)
in your codedef sqrt_init(shape, dtype=None): value = (1 / K.sqrt(2)) * K.ones(shape) return value
(in complexBN/bn.py)always error such as :
AttributeError: 'int' object has no attribute 'dtype'
The text was updated successfully, but these errors were encountered: