8.22. Clara Structures and Primitives
The Clara pipeline definition language supports types as of api-version 0.5.0 and above.
Clara |
|
|
|---|---|---|
|
Mandatory (See primitives table) |
Mandatory |
|
Omit |
Omit |
Clara Primitive |
Omit |
Omit |
|
Mandatory (anything) |
Omit |
string is a special type that is implicitly dynamic and can be interpreted as an array of unit8 of dynamic size updatable by the user-code at runtime.
output:
- name: my-output
type: string
is the same as
output:
- name: my-output
type: array
element-type: uint8
shape: [-1]
In the table below we use short-hand notation for the array representation, where for example
array<float32>[3,244,244]
is equivalent to the YAML syntax
type: array
element-type: float32
shape: [3, 224, 224]
Clara Primitive |
Logical Interpretation |
|
|---|---|---|
|
8-bit unsigned integer |
|
|
16-bit unsigned integer |
|
|
32-bit unsigned integer |
|
|
64-bit unsigned integer |
|
|
8-bit unsigned integer |
|
|
16-bit signed integer |
|
|
32-bit signed integer |
|
|
64-bit signed integer |
|
|
16-bit floating-point |
|
|
32-bit floating-point |
|
|
64-bit floating-point |
|
Typed volume-based output.
output:
- name: my-output
type: stream
element-type: my-stream-type
path: /my-path
Typed static output array of int32 elements of shape 3 x 224 x 224.
output:
- name: my-output
type: array
element-type: int32
shape: [3, 224, 224]
Typed partially-dynamic output array of int32 elements of shape anything x 224 x 224.
output:
- name: my-output
type: array
element-type: int32
shape: [-1, 224, 224]
Typed primitive of float32.
output:
- name: my-output
type: float32
String output (implicitly dynamic).
- name: my-output
type: string