Types¶
mujou.types ¶
The types of mujou that annotations use.
Sizeis a shape: an intnis(n,), and()has no dimension, as the batch ofmujou.pc(mujou.pc.msg.activity_spec). Unliketorch.Size, it takes an int as well.Deviceis where a node computes or a tensor is made: atorch.deviceor its name, such as"cpu"or"cuda:0".Messageis a message the host writes: atorch.Tensor, a Python scalar (int,float,boolorTimestamp), or a dict of them (aTypedDictof the port'sDictSpec).
Import them from here::
from mujou.types import Device, Message, Size