Skip to content

no member named 'shared_ptr' in namespace 'std' #1434

@zhanghang1989

Description

@zhanghang1989

When building from source, I got this error. My system is OSX 10.12.4, conda, CUDA 8.0. Any thoughts? Thanks!

torch/csrc/serialization.cpp:2:10: fatal error: 'system_error' file not found
#include <system_error>
         ^
In file included from torch/csrc/autograd/engine.cpp:1:
pytorch/torch/csrc/autograd/function_hook.h:11:40: error: no member named 'shared_ptr' in namespace 'std'
using variable_list = std::vector<std::shared_ptr<Variable>>;
                                  ~~~~~^
/Users/hangzhang/pytorch/torch/csrc/autograd/function_hook.h:11:51: error: 'Variable' does not refer to a value
using variable_list = std::vector<std::shared_ptr<Variable>>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions