Skip to content

AttributeError: 'tensor' object has no attribute 'broadcastable' #9

@tansinjahan

Description

@tansinjahan

I am getting this error while running VaDE.py in windows. Can you please suggest how to solve the problem?

C:\Users\GIGL\VaDE-master>python VaDE.py dataset
Using TensorFlow backend.
WARNING (theano.configdefaults): g++ not available, if using conda: conda insta ll m2w64-toolchain
C:\Program Files\Python35\lib\site-packages\theano\configdefaults.py:560: UserWa
rning: DeprecationWarning: there is no c++ compiler.This is deprecated and with
Theano 0.11 a c++ compiler will be mandatory
warnings.warn("DeprecationWarning: there is no c++ compiler."
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to exe
cute optimized C-implementations (for both CPU and GPU) and will default to Pyth
on implementations. Performance will be severely degraded. To remove this warnin
g, set Theano flags cxx to an empty string.
WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS fu
nctions.
training on: mnist
Traceback (most recent call last):
File "VaDE.py", line 249, in
Gamma = Lambda(get_gamma, output_shape=(n_centroid,))(z)
File "C:\Program Files\Python35\lib\site-packages\keras\engine\topology.py", l
ine 603, in call
output = self.call(inputs, **kwargs)
File "C:\Program Files\Python35\lib\site-packages\keras\layers\core.py", line
651, in call
return self.function(inputs, **arguments)
File "VaDE.py", line 111, in get_gamma
temp_Z=T.transpose(K.repeat(tempz,n_centroid),[0,2,1])
File "C:\Program Files\Python35\lib\site-packages\theano\tensor\basic.py", lin
e 3691, in transpose
ret = DimShuffle(x.broadcastable, axes)(x)
AttributeError: 'Tensor' object has no attribute 'broadcastable'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions