You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to successfully compile TensorFlow Serving `ModelServer`, you will need to install a C/C++ compiler.
157
157
@@ -163,6 +163,22 @@ By default, SAP HANA, express edition setup a Python 2.7 version, but this one d
163
163
164
164
Therefore, you will add these missing packages too.
165
165
166
+
#### For Debian or Ubuntu system:
167
+
168
+
If you are planning on running TensorFlow Serving on `Debian` or `Ubuntu` system, you can simply follow the **Packages** section details from the [TensorFlow Serving setup instructions](https://www.tensorflow.org/serving/setup#packages).
169
+
170
+
Then, install the `virtualenv` package using the following command:
171
+
172
+
```shell
173
+
sudo apt-get install virtualenv
174
+
```
175
+
176
+
Make sure that you have a Python 2.7 installation:
@@ -329,40 +345,6 @@ Your terminal prompt should now look like the following:
329
345
(tms) tmsadm@hxehost:~>
330
346
```
331
347
332
-
#### Bazel:
333
-
334
-
`Bazel` is an open-source build and test tool similar to `Make`, `Maven`, and `Gradle`. It uses a human-readable, high-level build language.
335
-
`Bazel` supports projects in multiple languages and builds outputs for multiple platforms.
336
-
337
-
TensorFlow uses `Bazel` for its compilation. You can find the `Bazel` installation instructions [online](https://docs.bazel.build/versions/master/install.html).
338
-
339
-
You can install `Bazel` 0.11.1 in a *user* mode using the following commands:
As stated previously, TensorFlow Serving `ModelServer` installable binaries are only available for `Debian` & `Ubuntu` Linux distribution.
412
+
413
+
Therefore, on SUSE Linux Enterprise Server or Red Hat Enterprise Linux, you will need to compile the binary locally as detailed in this step.
414
+
426
415
427
-
As stated previously, TensorFlow Serving `ModelServer` binaries are only available for `Debian` Linux distribution.
416
+
If you are planning on running TensorFlow Serving on `Debian` or `Ubuntu`system, you can simply following the [TensorFlow Serving setup instructions](https://www.tensorflow.org/serving/setup#installing_using_apt-get) and move to the next step.
428
417
429
-
Therefore, we will need to compile the binary locally for SUSE Linux Enterprise Server and Red Hat Enterprise Linux.
418
+
#### Bazel:
419
+
420
+
`Bazel` is an open-source build and test tool similar to `Make`, `Maven`, and `Gradle`. It uses a human-readable, high-level build language.
421
+
`Bazel` supports projects in multiple languages and builds outputs for multiple platforms.
422
+
423
+
TensorFlow uses `Bazel` for its compilation. You can find the `Bazel` installation instructions [online](https://docs.bazel.build/versions/master/install.html).
424
+
425
+
You can install `Bazel` 0.11.1 in a *user* mode using the following commands:
In order to permanently add the TensorFlow Serving `ModelServer` executable to your user path, you will add the compiled binary directory path in your profile file:
[ACCORDION-BEGIN [Step 7: ](Configure SAP HANA External Machine Learning)]
506
544
507
-
Now that the TensorFlow Serving `ModelServer` is up and running, you will need to add its configuration to your SAP HANA, express edition instance.
545
+
Now, that the TensorFlow Serving `ModelServer` is up and running, you will need to add its configuration to your SAP HANA, express edition instance.
508
546
509
547
Before moving forward with the EML configuration, you need to grant the proper role to the `ML_USER` created during the [Prepare your SAP HANA, express edition instance for Machine Learning](https://www.sap.com/developer/tutorials/mlb-hxe-setup-basic.html).
Copy file name to clipboardExpand all lines: tutorials/mlb-hxe-tensorflow-image-retraining/mlb-hxe-tensorflow-image-retraining.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ As part of the [TensorFlow Hub](https://www.tensorflow.org/hub/), a library to f
17
17
18
18
You will reuse a pre-trained image recognition model from the [How to Retrain an Image Classifier for New Categories](https://www.tensorflow.org/tutorials/image_retraining) tutorial from the TensorFlow website.
19
19
20
-
However, this script currently includes a step to export the model using a 3 dimensions shape as the input which is not supported by the SAP HANA External Machine Learning integration.
20
+
However, this script currently includes a step to export the model using a 3 dimensions shape as the input which is not supported by the SAP HANA External Machine Learning integration.
21
21
22
22
Therefore, you will use a script that will save the retrained model a the raw image blob as input.
23
23
@@ -87,7 +87,6 @@ The scripts that you will leverage requires the TensorFlow Hub Python package, t
87
87
88
88
```shell
89
89
pip install tensorflow_hub
90
-
pip install tensorflow-serving-api
91
90
```
92
91
93
92
Next, you can download the retrain script:
@@ -255,7 +254,6 @@ def main(unused_argv):
255
254
legacy_init_op= legacy_init_op,
256
255
)
257
256
builder.save(as_text=False)
258
-
session.close()
259
257
260
258
if__name__=='__main__':
261
259
tf.app.run()
@@ -444,15 +442,13 @@ You can now start the TensorFlow Serving `ModelServer` using the following comma
444
442
> **Note:** As of the publication of this tutorial, there is no ***graceful*** shutdown command for the TensorFlow Serving `ModelServer`. Therefore you will need to kill the process manually.
0 commit comments