File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
# BUILD redisai-cpu-${ARCH}-${OSNICK}:M.m.b
2
2
3
- # stretch| bionic|buster
4
- ARG OSNICK=buster
3
+ # OSNICK= bionic|stretch |buster
4
+ ARG OSNICK=stretch
5
5
6
6
# ----------------------------------------------------------------------------------------------
7
7
# FROM redisfab/redis-x64-${OSNICK}:5.0.5 AS builder
8
8
FROM redis:latest AS builder
9
9
10
- ENV X_NPROC "cat /proc/cpuinfo|grep processor|wc -l"
11
-
12
10
ADD ./ /build
13
11
WORKDIR /build
14
12
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ FROM redisfab/redis-${OSNICK}-xbuild:5.0.5
23
23
24
24
RUN [ "cross-build-start" ]
25
25
26
+ RUN set -e; apt-get -qq update; apt-get -q install -y libgomp1
27
+
26
28
ENV LD_LIBRARY_PATH /usr/lib/redis/modules/
27
29
28
30
RUN mkdir -p "$LD_LIBRARY_PATH"
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ docker run -p 6379:6379 -it --rm redisai/redisai
27
27
28
28
On the client, load the model
29
29
``` sh
30
- redis-cli -x AI.MODELSET foo TF CPU INPUTS a b OUTPUTS c < examples/models /graph.pb
30
+ redis-cli -x AI.MODELSET foo TF CPU INPUTS a b OUTPUTS c < test/test_data /graph.pb
31
31
```
32
32
33
33
Then create the input tensors, run the computation graph and get the output tensor (see ` load_model.sh ` ). Note the signatures:
You can’t perform that action at this time.
0 commit comments