Skip to content

Size mismatch in SigmoidCrossEntropyLoss #5

@jason718

Description

@jason718

I met this bug and have no idea why it happenes

Traceback (most recent call last):
File "src/train_cls.py", line 121, in
s.run(args.nit)
File "/home/jason/egomotion/experiment/voc2007_cls/voc-classification/src/solver.py", line 90, in run
s.step(1)
File "/home/jason/egomotion/experiment/voc2007_cls/voc-classification/src/python_layers.py", line 54, in forward
lZ = np.log(1+np.exp(-np.abs(f))) * mask
ValueError: operands could not be broadcast together with shapes (10,20) (16,20)

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