File size: 328 Bytes
fe5151f
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@0x893bac407c81b48c;

interface Agent {

    struct Tensor {
        data @0   :Data; # tensor bytes tensor.numpy().tobytes()
        shape @1  :List(UInt64); # tensor shape list(tensor.shape())
        dtype @2  :Text; # data type name tensor.dtype()
    }

    act @0 (obs :Data) -> (action :Tensor);
    reset @1 () -> ();
}