feat: toy tutorial chapter 3.
Signed-off-by: jackfiled <xcrenchangjun@outlook.com>
This commit is contained in:
6
examples/reshape_reshape.hello
Normal file
6
examples/reshape_reshape.hello
Normal file
@@ -0,0 +1,6 @@
|
||||
def main() {
|
||||
var a<2,1> = [1, 2];
|
||||
var b<2,1> = a;
|
||||
var c<2,1> = b;
|
||||
print(c);
|
||||
}
|
3
examples/transpose_transpose.hello
Normal file
3
examples/transpose_transpose.hello
Normal file
@@ -0,0 +1,3 @@
|
||||
def transpose_transpose(x) {
|
||||
return transpose(transpose(x));
|
||||
}
|
Reference in New Issue
Block a user