Ability to have optional inputs
See original GitHub issueIs 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:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is awesome! Thanks a lot! @Tabrizian
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