GithubHelp home page GithubHelp logo

some ops not work. about tensorflow-nodejs HOT 3 CLOSED

yorkie avatar yorkie commented on May 28, 2024
some ops not work.

from tensorflow-nodejs.

Comments (3)

yorkie avatar yorkie commented on May 28, 2024

Got the following error from gdb/lldb:

* thread #1: tid = 0xe373d, 0x0000000106e73cb1 libtensorflow.so`tensorflow::NodeBuilder::NodeOut::NodeOut(tensorflow::Node*, int) + 33, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x98)
  * frame #0: 0x0000000106e73cb1 libtensorflow.so`tensorflow::NodeBuilder::NodeOut::NodeOut(tensorflow::Node*, int) + 33
    frame #1: 0x0000000106e74e8d libtensorflow.so`void std::__1::vector<tensorflow::NodeBuilder::NodeOut, std::__1::allocator<tensorflow::NodeBuilder::NodeOut> >::__emplace_back_slow_path<tensorflow::Node* const&, int const&>(tensorflow::Node* const&&&, int const&&&) + 253
    frame #2: 0x0000000106e7420b libtensorflow.so`tensorflow::NodeBuilder::Input(tensorflow::Node*, int) + 91
    frame #3: 0x00000001022302a4 tensorflow.node`TensorflowNode::Operation::AddInput(info=0x00007fff5fbfe118) + 250 at operation.cc:245 [opt]
    frame #4: 0x000000010222c67c tensorflow.node`Nan::imp::FunctionCallbackWrapper(info=0x00007fff5fbfe190) + 137 at nan_callbacks_12_inl.h:174 [opt]
    frame #5: 0x000000010017b0c2 node`v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) + 466
    frame #6: 0x00000001001e6eef node`v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) + 911
    frame #7: 0x00000001001e6449 node`v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) + 281

from tensorflow-nodejs.

yorkie avatar yorkie commented on May 28, 2024

Ah, this is because the all ops only can accept the Operation as its inputs except for graph.constant, passing a Tensor causes this problem @zihan-git

from tensorflow-nodejs.

yorkie avatar yorkie commented on May 28, 2024

BTW, may I ask you to fix this problem by checking the type of input and make always be an operation for ops like the following?

if (input instanceof tensorflow.Tensor) {
  input = this.constant(input);
}

from tensorflow-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.