Coder Social home page Coder Social logo

Comments (1)

ChunelFeng avatar ChunelFeng commented on September 25, 2024

1,色图中,所有判断 返回值是否正常的信息,都在 CGRAPH_FUNCTION_CHECK_STATUS 的宏函数中了。如果修改的话,理论上仅需修改一处即可。但是,我也不能保证,因为还有很多判断是否为 null的宏函数
2,如果不想修改色图的情况下,想兼容现有逻辑,可以考虑,添加一层 CStatus中 info_ 信息,和你们原有返回值信息的映射关系。算子中,抛出对应的string 的时候,返回映射的 错误码。
3,色图的函数返回值中,包含 code 和 info 信息,理论上,可以转成任何类型的信息。中间加一层 adaptor即可

from cgraph.

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.