Skip to content

Commit 6e38a49

Browse files
Update tensorflow_serving.md
1 parent 5a252f5 commit 6e38a49

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tensorflow_serving.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
## SavedModel
44

5-
Get model input:
5+
**Save your (keras/tf) model:**
6+
```
7+
model.compile(...)
8+
model.fit(...)
9+
model.save("/path/to/your/model/folder/")
10+
```
11+
12+
**Get model input:**
613
```
714
$ saved_model_cli show --tag_set serve --signature_def serving_default --dir model/
815
```
@@ -26,6 +33,7 @@ The name of input and output tensors are `serving_default_dense_input:0` and `St
2633

2734
## Run model
2835

36+
**Load model**
2937
```
3038
const std::string export_dir = "/path/to/your/model/folder/";
3139

0 commit comments

Comments
 (0)