TensorFlow.jl icon indicating copy to clipboard operation
TensorFlow.jl copied to clipboard

Polymorphism example code

Open anj1 opened this issue 8 years ago • 0 comments

In polymorphism.jl, should the following code:

for i in 1:batch_size
  y_one_hot[y, i] = 1.
end

instead be:

for i in 1:batch_size
  y_one_hot[y[i], i] = 1.
end

? I'm trying to see if I understand the example correctly.

anj1 avatar May 15 '16 21:05 anj1