Skip to content

Commit dc9a3cd

Browse files
committed
adding working pytorch with actix in rust
1 parent b41588a commit dc9a3cd

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

actixtorch/Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ lint:
77
test:
88
cargo test --quiet
99

10+
build:
11+
docker build -t torch .
12+
13+
rundocker:
14+
docker run -it --rm -p 8080:8080 torch
15+
1016
run:
1117
cargo run
1218

actixtorch/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
### Working PyTorch Actix
2+
3+
This runs PyTorch + Actix
4+
5+
* To DO: figure the final containerized steps:
6+
currently missing `libtorch_cpu.so:`
7+
8+
```bash
9+
docker run -it --rm -p 8080:8080 torch
10+
actixtorch: error while loading shared libraries: libtorch_cpu.so: cannot open shared object file: No such file or directory
11+
make: *** [Makefile:14: rundocker] Error 127
12+
```

0 commit comments

Comments
 (0)