@@ -1,8 +1,4 @@
import pytraph as pt
-string = pt.constant("Hello World")
-
-with pt.Session() as sess:
- print(sess.run(string))
+a = pt.zeros(4,2)
@@ -1,4 +1,2 @@
# -*- coding: utf-8 -*-
-from pytraph.client.session import(Session)
-from pytraph.framework.constant import(constant)
+from pytraph.core.tensor import Tensor
@@ -1,4 +0,0 @@
-class Session(object):
- def __init__(self):
- pass
@@ -0,0 +1,11 @@
+
+class dtype(object):
+ def __init__(self, name):
+ self.type_name = name
+float = dtype('float')
+double = dtype('double')
+half = dtype('half')
@@ -0,0 +1,8 @@
+class Tensor(object):
+ def __init__(self):
+ pass
+ def abs(self):
-def constant(tensor):