Skip to content

code  #13

@TYZXD

Description

@TYZXD
general_x = general_x / norm.expand_as(general_x)

RuntimeError: The expanded size of the tensor (64) must match the existing size (32) at non-singleton dimension 1. Target sizes: [32, 64]. Tensor sizes: [32]
if I change torch.norm(keepdim= True), the code can run.
but the accuracy is still 60%, not 90%.
Have anyone solve this problem, thanks a lot.

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