JasonWang 7 ani în urmă
părinte
comite
f1ae36c03d

BIN
.vscode/ipch/412f5e995f24fd2c/mmap_address.bin


+ 1 - 5
python/demo.py

@@ -1,8 +1,4 @@
 import pytraph as pt
 import pytraph as pt
  
  
  
  
-string  = pt.constant("Hello World")
- 
- 
-with pt.Session() as sess:
-    print(sess.run(string))
+a = pt.zeros(4,2)

+ 1 - 3
python/pytraph/__init__.py

@@ -1,4 +1,2 @@
 # -*- coding: utf-8 -*-
 # -*- coding: utf-8 -*-
-from pytraph.client.session import(Session)
-
-from pytraph.framework.constant import(constant)
+from pytraph.core.tensor import Tensor

+ 0 - 0
python/pytraph/client/__init__.py


BIN
python/pytraph/client/__pycache__/__init__.cpython-36.pyc


BIN
python/pytraph/client/__pycache__/session.cpython-36.pyc


+ 0 - 4
python/pytraph/client/session.py

@@ -1,4 +0,0 @@
-
-class Session(object):
-    def __init__(self):
-        pass

+ 11 - 0
python/pytraph/core/dtype.py

@@ -0,0 +1,11 @@
+
+
+
+class dtype(object):
+    def __init__(self, name):
+        self.type_name = name
+
+float = dtype('float')
+double = dtype('double')
+half = dtype('half')
+

+ 8 - 0
python/pytraph/core/tensor.py

@@ -0,0 +1,8 @@
+
+
+class Tensor(object):
+    def __init__(self):
+        pass
+
+    def abs(self):
+        pass

+ 0 - 0
python/pytraph/framework/__init__.py


+ 0 - 4
python/pytraph/framework/constant.py

@@ -1,4 +0,0 @@
-
-
-def constant(tensor):
-    pass