Skip to content

Polymorphism example code #4

@anj1

Description

@anj1

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.

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