Giter Site home page Giter Site logo

Comments (2)

yehudaorel avatar yehudaorel commented on June 8, 2024

Hi @Devjiu, as for the first question, oneDNN provides API execution tracing with primitive information via the environment variable ONEDNN_VERBOSE. Please refer to the verbose mode documentation for more detail.

As for the second question, indeed you can use set_data_handle() for example in examples/primitives/convolution.cpp you can replace the the following lines:

write_to_dnnl_memory(src_data.data(), user_src_mem);
write_to_dnnl_memory(weights_data.data(), user_weights_mem);
write_to_dnnl_memory(bias_data.data(), user_bias_mem);

with

user_src_mem.set_data_handle(src_data.data());
user_weights_mem.set_data_handle(weights_data.data());
user_bias_mem.set_data_handle(bias_data.data());

Another option is to pass data during memory creation:
auto user_src_mem = memory({src_dims, dt::f32, tag::nchw}, engine, src_data.data());

Hope this helps, let us know if you run to any other issues!

from onednn.

Devjiu avatar Devjiu commented on June 8, 2024

@yehudaorel
Thanks, for quick response)
I was sure, that already set this variable - but there left dnnl_set_verbose(0); in my code. Thanks for the hint.
Setting data pointer in c-tor also helped, much better.

Sorry for noob questions, my questions are resolved.

from onednn.

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.