Giter VIP home page Giter VIP logo

Comments (10)

soumith avatar soumith commented on August 15, 2024

how do you propose it handled instead? with an explicit -opt true or -opt false?

from torch7.

andresy avatar andresy commented on August 15, 2024

please, no

from torch7.

soumith avatar soumith commented on August 15, 2024

@mys007 i suggest penlight's command-line interface for alternative behavior. I think we will keep the current boolean implementation in torch CmdLine

http://stevedonovan.github.io/Penlight/api/libraries/pl.lapp.html

from torch7.

mys007 avatar mys007 commented on August 15, 2024

Well, it could be also possible to follow GNU-style -flag and -no-flag. Afaik, penlight implements the same negating behavior as CmdLine, so I'll just stick with using numbers instead. Nevertheless, the current behavior of booleans should be documented in cmdline.md (default value being true)...

from torch7.

soumith avatar soumith commented on August 15, 2024

Fair enough, I'll document it in cmdline.md
thanks for the feedback.

from torch7.

suryabhupa avatar suryabhupa commented on August 15, 2024

Is the -no-flag option implemented for negating a default true option?

from torch7.

soumith avatar soumith commented on August 15, 2024

@suryabhupa not in torch.CmdLine or pl.lapp

from torch7.

suryabhupa avatar suryabhupa commented on August 15, 2024

Is this something that could be done or does it not fit well with the design/can be underspecified? I would be happy to try to implement it if it's something worthwhile.

from torch7.

soumith avatar soumith commented on August 15, 2024

@andresy would you be okay with the GNU-style -flag and -no-flag ?

from torch7.

suryabhupa avatar suryabhupa commented on August 15, 2024

It might have an affect on backwards compatibility? I'm not actually sure if this is cleanly possible, or there might be another solution.

from torch7.

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.