Open erickrf opened 8 years ago
Same question @farizrahman4u
I encountered same problem here. @farizrahman4u
I'm having a similar problem using the analyze_distribution.py script. Here's the error:
ValueError: Dimension 1 in both shapes must be equal, but are 100 and 10. Shapes are [?,100,1] and [?,10,4]. for 'huffmax_1/MatMul' (op: 'BatchMatMul') with input shapes: [?,100,1,1,1], [?,10,4,100,1].
Here, 100 is input_dim and 10 is nb_classes.
It is occurring on line 212 of the huffmax.py.
That is at this point:
req_nodes = K.gather(self.class_path_map, target_classes)
req_W = K.gather(self.W, req_nodes)
y = K.batch_dot(input_vector, req_W, axes=(1, 3))
There is a mix-up in the shape here with the input_dim and the nb_classes. @farizrahman4u
I tried the
test_training_speed.py
script and got the following errors (using tensorflow):