Tensor Sum

Create a two-by-two tensor and reduce its elements to one scalar. This page includes a preview and an autorun-ready lmscript source file.

Rendered Tensor Sum example.
Preview generated from the source repository at 63620aecc8.

Let an agent build from this example

Copy this prompt into your Lead's terminal to ask an agent to complete a related task:

Use lmtorch to compute and verify a small tensor result. Run the example
with the released host, report the source and output, and confirm its
expected value. Use the lmtorch API and the Tensor Sum example below.
Report the source, output, and verification.
LMScript DSL: https://lmctl.com/tools/lmscript/skill.html
lmtorch API: https://lmctl.com/tools/lmtorch/guide.html
Tensor Sum example:
https://lmctl.com/tools/lmtorch/examples/tensor-sum.html

Run the example

lmctl autorun https://lmctl.com/tools/lmtorch/examples/tensor-sum.lms

Read the autorun source. See get started with provider runs.

Source from the project

The original example is tensor-sum-dsl.lms at 63620aecc8. The published autorun source includes the host declaration and any setup needed to run it from a new directory.