Code Monkey home page Code Monkey logo

Comments (5)

github-actions avatar github-actions commented on May 27, 2024

Thank you so much for filing the issue. We will look at it and take appropriate action as soon as possible.' first issue

from deepc.

srohit0 avatar srohit0 commented on May 27, 2024

Thanks @thibnoel for the report.

As a workaround, you can try it on platform https://cainvas.ai-tech.systems/ that hosts deepC.

from deepc.

thibnoel avatar thibnoel commented on May 27, 2024

Hello @srohit0, thanks for your quick answer!
Your suggestion of converting the model on your platform directly worked for the step 1 of the example. However, I feel like there is something I still dont get with the overall workflow; I now tried to compile it with the example command you provide and it fails with the following errors (some of the seem due to bad naming but the others are related to dnnc I think) :

jupyter-tnoel@ip-172-31-18-137:~/deepC/test/compiler/mnist$ /usr/bin/clang++-8 -O3 testnet.cpp -I ../../../include/ -isystem ../../../packages/eigen-eigen-323c052e1731/ -o testnet.exe

In file included from testnet.cpp:24:
/home/jupyter-tnoel/testnet.h:22:7: error: expected unqualified-id
float 12[] = {
      ^
/home/jupyter-tnoel/testnet.h:29:7: error: expected unqualified-id
float 13[] = {
      ^
testnet.cpp:49:17: error: no matching constructor for initialization of 'tensor<float>'
  tensor<float> dnnc_12(12, {4, 8}, "12", false);
                ^       ~~~~~~~~~~~~~~~~~~~~~~~
../../../include/core/tensor.h:113:3: note: candidate constructor not viable: no known conversion from 'int' to 'std::vector<DIMENSION>' (aka 'vector<unsigned long>') for 1st argument
  tensor(std::vector<DIMENSION> dimn = std::vector<DIMENSION>(),
  ^
../../../include/core/tensor.h:123:3: note: candidate constructor not viable: requires at most 3 arguments, but 4 were provided
  tensor(T *data, std::vector<DIMENSION> dimn, std::string n = "")
  ^
../../../include/core/tensor.h:139:3: note: candidate constructor not viable: requires single argument 'other', but 4 arguments were provided
  tensor(tensor const &other) : placeHolder<T>(other) {
  ^
testnet.cpp:50:17: error: no matching constructor for initialization of 'tensor<float>'
  tensor<float> dnnc_13(13, {8, 1}, "13", false);
                ^       ~~~~~~~~~~~~~~~~~~~~~~~
../../../include/core/tensor.h:113:3: note: candidate constructor not viable: no known conversion from 'int' to 'std::vector<DIMENSION>' (aka 'vector<unsigned long>') for 1st argument
  tensor(std::vector<DIMENSION> dimn = std::vector<DIMENSION>(),
  ^
../../../include/core/tensor.h:123:3: note: candidate constructor not viable: requires at most 3 arguments, but 4 were provided
  tensor(T *data, std::vector<DIMENSION> dimn, std::string n = "")
  ^
../../../include/core/tensor.h:139:3: note: candidate constructor not viable: requires single argument 'other', but 4 arguments were provided
  tensor(tensor const &other) : placeHolder<T>(other) {
  ^
testnet.cpp:51:17: error: no matching constructor for initialization of 'tensor<float>'
  tensor<float> dnnc_layers_dot_0_dot_bias(layers_dot_0_dot_bias, {8}, "layers_dot_0_dot_bias", false);
                ^                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../include/core/tensor.h:113:3: note: candidate constructor not viable: no known conversion from 'float [8]' to 'std::vector<DIMENSION>' (aka 'vector<unsigned long>') for 1st argument
  tensor(std::vector<DIMENSION> dimn = std::vector<DIMENSION>(),
  ^
../../../include/core/tensor.h:123:3: note: candidate constructor not viable: requires at most 3 arguments, but 4 were provided
  tensor(T *data, std::vector<DIMENSION> dimn, std::string n = "")
  ^
../../../include/core/tensor.h:139:3: note: candidate constructor not viable: requires single argument 'other', but 4 arguments were provided
  tensor(tensor const &other) : placeHolder<T>(other) {
  ^
testnet.cpp:52:17: error: no matching constructor for initialization of 'tensor<float>'
  tensor<float> dnnc_layers_dot_1_dot_bias(layers_dot_1_dot_bias, {1}, "layers_dot_1_dot_bias", false);
                ^                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../include/core/tensor.h:113:3: note: candidate constructor not viable: no known conversion from 'float [1]' to 'std::vector<DIMENSION>' (aka 'vector<unsigned long>') for 1st argument
  tensor(std::vector<DIMENSION> dimn = std::vector<DIMENSION>(),
  ^
../../../include/core/tensor.h:123:3: note: candidate constructor not viable: requires at most 3 arguments, but 4 were provided
  tensor(T *data, std::vector<DIMENSION> dimn, std::string n = "")
  ^
../../../include/core/tensor.h:139:3: note: candidate constructor not viable: requires single argument 'other', but 4 arguments were provided
  tensor(tensor const &other) : placeHolder<T>(other) {
  ^
testnet.cpp:54:9: error: too many template arguments for class template 'MatMul'
  dnnc::MatMul<float, float, float> MatMul_0("MatMul_0");
        ^             ~~~~~~~~~~~~~
../../../include/operators/MatMul.h:30:29: note: template is declared here
template <typename T> class MatMul : public baseOperator<T, T, T> {
~~~~~~~~~~~~~~~~~~~~~       ^
testnet.cpp:58:9: error: too many template arguments for class template 'Add'
  dnnc::Add<float, float, float> Add_1("Add_1");
        ^                 ~~~~~~
../../../include/operators/Add.h:37:7: note: template is declared here
class Add : public baseOperator<To, Ti, Ti> {
      ^
testnet.cpp:62:9: error: too many template arguments for class template 'Tanh'
  dnnc::Tanh<float, float> Tanh_2("Tanh_2");
        ^           ~~~~~~
../../../include/operators/Tanh.h:31:29: note: template is declared here
template <typename T> class Tanh : public baseOperator<T, T, T> {
~~~~~~~~~~~~~~~~~~~~~       ^
testnet.cpp:66:9: error: too many template arguments for class template 'MatMul'
  dnnc::MatMul<float, float, float> MatMul_3("MatMul_3");
        ^             ~~~~~~~~~~~~~
../../../include/operators/MatMul.h:30:29: note: template is declared here
template <typename T> class MatMul : public baseOperator<T, T, T> {
~~~~~~~~~~~~~~~~~~~~~       ^
testnet.cpp:70:9: error: too many template arguments for class template 'Add'
  dnnc::Add<float, float, float> Add_4("Add_4");
        ^                 ~~~~~~
../../../include/operators/Add.h:37:7: note: template is declared here
class Add : public baseOperator<To, Ti, Ti> {
      ^
11 errors generated.

Would you please have any leads about how to keep going? Thanks in advance!
Best

from deepc.

srohit0 avatar srohit0 commented on May 27, 2024

@thibnoel - once the graph has errors, everything from that point is malformed. No point looking at the code, much less compiling it.

from deepc.

thibnoel avatar thibnoel commented on May 27, 2024

Hello @srohit0, thanks for the help, I think my graph is now correct but I will take a pause on this as I found a workaround that does not require generating the model through deepC. Anyway I might come back to it, I'm closing this issue in the meantime :)
Best

from deepc.

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.