GithubHelp home page GithubHelp logo

Comments (4)

rohany avatar rohany commented on July 22, 2024 1

Thanks, I see the problem now.

from taco.

rohany avatar rohany commented on July 22, 2024

Can you share the link of the web interface that led to the error (it includes the schedules and formats). Trying it myself, it looks like this particular case works.

from taco.

amirsh avatar amirsh commented on July 22, 2024

@rohany I believe this is what you are looking for?
http://tensor-compiler.org/codegen.html?expr=A(i,j,k)%20=%20B(i,j,l)%20*%20C(k,%20l)&format=A:sss:0,1,2;B:sss:0,1,2;C:ds:1,0

If you take a look at the generated assembly code:

      if (pA3_begin < kA) {
        if (A2_crd_size <= jA) {
          A2_crd = (int32_t*)realloc(A2_crd, sizeof(int32_t) * (A2_crd_size * 2));
          A2_crd_size *= 2;
        }
        A2_crd[jA] = j;
        jA++;
      }

The variable pA3_begin is not defined.

from taco.

stephenchouca avatar stephenchouca commented on July 22, 2024

This seems to be caused by the fact that the expression scatters into the result, which is not directly supported when the output format is sparse. By (manually) introducing a workspace, you can avoid scattering into the sparse output, which I believe should resolve the issue: http://tensor-compiler.org/codegen.html?expr=A(i,j,k)%20=%20B(i,j,l)%20*%20C(k,%20l)&format=A:sss:0,1,2;B:sss:0,1,2;C:ds:1,0&sched=precompute:B(i,j,l)%20*%20C(k,l):k:k

A longer-term fix for bugs like this though would probably require some sort of mechanism that detects scatters into sparse outputs and that automatically inserts workspaces to eliminate the scatter.

from taco.

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.