tesseract-runtime
command line application¶
This is the command line interface of the Tesseract runtime that is bundled with each Tesseract container.
tesseract-runtime¶
Invoke the Tesseract runtime.
The Tesseract runtime can be configured via environment variables; for example,
export TESSERACT_RUNTIME_PORT=8080
sets the port to use for tesseract serve
to 8080.
tesseract-runtime [OPTIONS] COMMAND [ARGS]...
Options
- --install-completion¶
Install completion for the current shell.
- --show-completion¶
Show completion for the current shell, to copy it or customize the installation.
abstract-eval¶
Perform abstract evaluation of the Tesseract on the input data.
Calculate output shape of apply from the shape of its inputs.
First argument is the payload, which should be a JSON object with the following structure.
tesseract-runtime abstract-eval [OPTIONS] JSON_PAYLOAD
Options
- -o, --output-path <output_path>¶
Output path to write the result to, such as local directory or S3 URI (may be anything supported by fsspec). [default: write to stdout]
- -f, --output-format <output_format>¶
Output format to write results in.
- Options:
json | msgpack | json+base64 | json+binref
Arguments
- JSON_PAYLOAD¶
Required argument
apply¶
Apply the Tesseract to the input data.
Multiplies a vector a by s, and sums the result to b.
First argument is the payload, which should be a JSON object with the following structure.
tesseract-runtime apply [OPTIONS] JSON_PAYLOAD
Options
- -o, --output-path <output_path>¶
Output path to write the result to, such as local directory or S3 URI (may be anything supported by fsspec). [default: write to stdout]
- -f, --output-format <output_format>¶
Output format to write results in.
- Options:
json | msgpack | json+base64 | json+binref
Arguments
- JSON_PAYLOAD¶
Required argument
check¶
Check whether the Tesseract API can be imported.
tesseract-runtime check [OPTIONS]
health¶
Get health status of the Tesseract instance.
tesseract-runtime health [OPTIONS]
Options
- -o, --output-path <output_path>¶
Output path to write the result to, such as local directory or S3 URI (may be anything supported by fsspec). [default: write to stdout]
- -f, --output-format <output_format>¶
Output format to write results in.
- Options:
json | msgpack | json+base64 | json+binref
input-schema¶
Get input schema for tesseract apply function.
tesseract-runtime input-schema [OPTIONS]
Options
- -o, --output-path <output_path>¶
Output path to write the result to, such as local directory or S3 URI (may be anything supported by fsspec). [default: write to stdout]
- -f, --output-format <output_format>¶
Output format to write results in.
- Options:
json | msgpack | json+base64 | json+binref
jacobian¶
Computes the Jacobian of the Tesseract.
Differentiates jac_outputs
with respect to jac_inputs
, at the point inputs
.
First argument is the payload, which should be a JSON object with the following structure.
{jac_outputs: {jac_inputs: array}}
. The shape of each array is the concatenation of the shapes of the output and input arrays, i.e. (*output_array.shape, *input_array.shape)
.tesseract-runtime jacobian [OPTIONS] JSON_PAYLOAD
Options
- -o, --output-path <output_path>¶
Output path to write the result to, such as local directory or S3 URI (may be anything supported by fsspec). [default: write to stdout]
- -f, --output-format <output_format>¶
Output format to write results in.
- Options:
json | msgpack | json+base64 | json+binref
Arguments
- JSON_PAYLOAD¶
Required argument
jacobian-vector-product¶
Compute the Jacobian vector product of the Tesseract at the input data.
Evaluates the Jacobian vector product between the Jacobian given by jvp_outputs
with respect to jvp_inputs
at the point inputs
and the given tangent vector.
First argument is the payload, which should be a JSON object with the following structure.
{jvp_inputs: array}
. The shape of each array is the same as the shape of the corresponding input array.{jvp_outputs: array}
. The shape of each array is the same as the shape of the corresponding output array.tesseract-runtime jacobian-vector-product [OPTIONS] JSON_PAYLOAD
Options
- -o, --output-path <output_path>¶
Output path to write the result to, such as local directory or S3 URI (may be anything supported by fsspec). [default: write to stdout]
- -f, --output-format <output_format>¶
Output format to write results in.
- Options:
json | msgpack | json+base64 | json+binref
Arguments
- JSON_PAYLOAD¶
Required argument
openapi-schema¶
Get the openapi.json schema.
tesseract-runtime openapi-schema [OPTIONS]
Options
- -o, --output-path <output_path>¶
Output path to write the result to, such as local directory or S3 URI (may be anything supported by fsspec). [default: write to stdout]
- -f, --output-format <output_format>¶
Output format to write results in.
- Options:
json | msgpack | json+base64 | json+binref
output-schema¶
Get output schema for tesseract apply function.
tesseract-runtime output-schema [OPTIONS]
Options
- -o, --output-path <output_path>¶
Output path to write the result to, such as local directory or S3 URI (may be anything supported by fsspec). [default: write to stdout]
- -f, --output-format <output_format>¶
Output format to write results in.
- Options:
json | msgpack | json+base64 | json+binref
serve¶
Start running this Tesseract’s web server.
tesseract-runtime serve [OPTIONS]
Options
- -p, --port <port>¶
Port number
- -h, --host <host>¶
Host IP address
- -w, --num-workers <num_workers>¶
Number of worker processes
vector-jacobian-product¶
Compute the Jacobian vector product of the Tesseract at the input data.
Computes the vector Jacobian product between the Jacobian given by vjp_outputs
with respect to vjp_inputs
at the point inputs
and the given cotangent vector.
First argument is the payload, which should be a JSON object with the following structure.
{vjp_outputs: array}
. The shape of each array is the same as the shape of the corresponding output array.{vjp_inputs: array}
. The shape of each array is the same as the shape of the corresponding input array.tesseract-runtime vector-jacobian-product [OPTIONS] JSON_PAYLOAD
Options
- -o, --output-path <output_path>¶
Output path to write the result to, such as local directory or S3 URI (may be anything supported by fsspec). [default: write to stdout]
- -f, --output-format <output_format>¶
Output format to write results in.
- Options:
json | msgpack | json+base64 | json+binref
Arguments
- JSON_PAYLOAD¶
Required argument