question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to have optional inputs

See original GitHub issue

Is your feature request related to a problem? Please describe. Triton now supports business logic scripting, where we can introduce business logic based on the input. Just like any API, not all inputs to an API are necessary as some default behavior can be expected in business logic.

Describe the solution you’d like Propose to have optional field for each input variable.

  {
    name: "input"
    data_type: TYPE_FP32
    dims: [ 1 ]
    optional: true
  }

Additional context I can contribute for implementation, if the proposal is accepted.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
oewaycommented, Dec 13, 2021

This is awesome! Thanks a lot! @Tabrizian

1reaction
Tabriziancommented, Dec 14, 2021

Support for optional inputs has been added in https://github.com/triton-inference-server/server/pull/3680 and will be available in 22.01 release (tentatively). For an example, you can refer to https://github.com/triton-inference-server/server/blob/main/qa/L0_optional_input/models/identity_2_float32/config.pbtxt

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Python Optional Arguments When Defining Functions
In this tutorial, you'll explore the techniques you have available for defining Python functions that take optional arguments. When you master Python optional...
Read more >
Named and Optional Arguments - C# Programming Guide
Named and optional parameters enable you to supply arguments for selected parameters. This capability greatly eases calls to COM interfaces ...
Read more >
Optional Arguments and Keyword Arguments in SKILL
When creating a user-defined procedure, SKILL provides a mechanism to allow optional arguments, keywork arguments, and an arbitrary number of arguments.
Read more >
Declaring optional function parameters in JavaScript - Flexiple
By definition, an Optional Parameter is a handy feature that enables programmers to pass less number of parameters to a function and assign...
Read more >
python - How do I define a function with optional arguments?
Just use the *args parameter, which allows you to pass as many arguments as you want after your a,b,c . You would have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found