8000 Using minicaffe net as a class member · Issue #50 · luoyetx/mini-caffe · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jul 3, 2025. It is now read-only.
This repository was archived by the owner on Jul 3, 2025. It is now read-only.

Using minicaffe net as a class member  #50

Open

Description

@ligongzheng

Hello,
I have a class like:
class A {
private:
caffe::Net* net_;
}

The constructor like:
A:A(){
net_ = new caffe::Net("**.prototxt");
}
A weird question was occurred:
When I use the class A like:
A = new A();
Everything is OK.

But when I use the class A like:
A a;
A crash happened ! After I run forward of net, I get a nan result.

Activity

  1. luoyetx commented on Sep 14, 2017

    @luoyetx
    Owner

    What does a crash happened mean? segment fault? Did you initialize the network parameters?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      0