Skip to content

Commit cce6097

Browse files
committed
init
1 parent 31bde9f commit cce6097

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

hello_tf.ss

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
(load-shared-object "libtensorflow.so")
2-
3-
;;TF_CAPI_EXPORT extern const char* TF_Version();
4-
(define TF_Version
5-
(foreign-procedure "TF_Version" ()
6-
string))
1+
(import (tensorflow tensorflow))
72

83
(define (main)
94
(printf "Hello from TensorFlow C library version ~a\n" (TF_Version)))

package.sc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
(("name" . "tensorflow")
2+
("version" . "0.0.1")
3+
("description" . "Scheme language bindings for TensorFlow")
4+
("keywords")
5+
("author"
6+
("quenchi" "chclock"))
7+
("license" . "MIT")
8+
("homepage" . "https://github.com/guenchi/tensorflow")
9+
("private" . #t)
10+
("scripts"
11+
("run" . "scheme --script"))
12+
("dependencies")
13+
("devDependencies"))

tensorflow/tensorflow.sc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
(library (tensorflow tensorflow)
2+
(export
3+
TF_Version)
4+
(import (scheme))
5+
6+
(define init (load-shared-object "libtensorflow.so"))
7+
8+
;;TF_CAPI_EXPORT extern const char* TF_Version();
9+
(define TF_Version
10+
(foreign-procedure "TF_Version" ()
11+
string))
12+
)

0 commit comments

Comments
 (0)