Why num_outputs is mandatory?
Closed this issue · 3 comments
thibo73800 commented
Line 45 in 1e06680
Why num_outputs
is set in this while it will not be used?
naturomics commented
@thibo73800 the 'num_outputs' para should be used in this line: b_IJ = tf.zeros(shape=[1, 1152, 10, 1, 1], dtype=np.float32) => b_IJ = tf.zeros(shape=[1, 1152, num_outputs, 1, 1], dtype=np.float32), which is designed for extensibility. Of course, the '1152' can also be automatically calculated (I would like to replace all of number with parameters, making the code can be reused in more scenarios)
thibo73800 commented
Ok, but the meaning of num_outputs is in fact, the number of capsules in the "Fc" CapsulesLayer?
Thank for your answer.
naturomics commented
@thibo73800 Yes, it is.