Skip to content

make error #12

@jiaobingle

Description

@jiaobingle

i can run 'camke ..' successfully, but when i run 'make', it shows :
/home/workplace/cpp-pytorch/example-app.cpp:44:49: error: ‘class at::DeprecatedTypeProperties’ has no member named ‘tensorFromBlob’
auto img_tensor = torch::CPU(torch::kFloat32).tensorFromBlob(img_float.data, {1, 224, 224, 3});
^
what can i do next to solve it, thx!

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