Skip to content

main.aug ​

CPU tensors with PyTorch · Source and specification

Files in this project

Code ​

aug
// aug-spec: "main.aug.md" explains this file. Read it before changes; refresh with aug spec.
import calculate from tensors
import TensorError from "https://github.com/GreenPandaStudios/aug-pytorch#e2b74b1968fb11972e260ef3796a1cd849c1f702"
try:
    print(value=calculate())
catch TensorError error:
    print(value=error.message)
aug
// aug-spec: "main.aug.md" explains this file. Read it before changes; refresh with aug spec.
import calculate from tensors
import TensorError from "https://github.com/GreenPandaStudios/aug-pytorch#e2b74b1968fb11972e260ef3796a1cd849c1f702"
try {
    print(value=calculate())
}
catch TensorError error {
    print(value=error.message)
}

Compiled specification ​

Interactions and sequences

Startup ​

It prints calculate. If this work raises TensorError as error, it prints error.message. source

Dependencies ​

It uses TensorError (message) from https://github.com/GreenPandaStudios/aug-pytorch#e2b74b1968fb11972e260ef3796a1cd849c1f702. It uses calculate from tensors.

Built-in operations follow the language reference.

Last updated:

The world runs on language