Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug, please help me #489

Closed
bigfanofcpp opened this issue Dec 8, 2017 · 1 comment
Closed

bug, please help me #489

bigfanofcpp opened this issue Dec 8, 2017 · 1 comment
Labels

Comments

@bigfanofcpp
Copy link

bigfanofcpp commented Dec 8, 2017

Stack: [0x00007000050c3000,0x00007000051c3000], sp=0x00007000051bdc00, free space=1003k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libsystem_c.dylib+0x1432] strlen+0x12
C [libtensorflow_cc.so+0x22790fa] perftools::gputools::internal::DsoLoader::GetDsoHandle(tensorflow::StringPiece, void**, perftools::gputools::internal::DsoLoader::LoadKind)+0x11a
C [libtensorflow_cc.so+0x2278f4c] perftools::gputools::internal::DsoLoader::GetCublasDsoHandle(void**)+0xcc
C [libtensorflow_cc.so+0x227b022] std::__1::__function::__func<tensorflow::Status ()(void**), std::__1::allocator<tensorflow::Status ()(void**)>, tensorflow::Status (void**)>::operator()(void**&&)+0x12
C [libtensorflow_cc.so+0x227a7cf] perftools::gputools::internal::CachedDsoLoader::FetchHandleResult(std::__1::function<tensorflow::Status (void**)>)+0x2f
C [libtensorflow_cc.so+0x227a6af] perftools::gputools::internal::CachedDsoLoader::GetCublasDsoHandle()+0x6f
C [libtensorflow_cc.so+0x22053c2] perftools::gputools::initialize_cublas()+0xf2

====

<dependencies>
    <dependency>
        <groupId>org.bytedeco.javacpp-presets</groupId>
        <artifactId>tensorflow-platform</artifactId>
        <version>1.0.1-1.3</version>
    </dependency>
</dependencies>

====

public class Example {
public static void main(String[] args) throws Exception {
final Session session = new Session(new SessionOptions());
GraphDef def = new GraphDef();
tensorflow.ReadBinaryProto(Env.Default(),
"somedir/trained_model.proto", def);
Status s = session.Create(def);
if (!s.ok()) {
throw new RuntimeException(s.error_message().getString());
}
}
}

====

OS is mac 10.13.1

@saudet saudet added the question label Dec 8, 2017
@saudet
Copy link
Member

saudet commented Dec 8, 2017

That's a known issue with TensorFlow on Mac. The workaround is here: #396 (comment)

Or you can try the latest SNAPSHOT version...

@saudet saudet closed this as completed Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants