Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
half_plus_two/00000123
README.md

README.md

Tensorflow Serving Environment Example

Create Environment

$ fission env create --name tensorflow --image fission/tensorflow-serving-env --version 2

Create Package

$ zip -r half_plus_two.zip ./half_plus_two
$ fission pkg create --env tensorflow --deploy half_plus_two.zip

Create Function

Here, the --entrypoint represents the name of top directory contains trained model.

$ fission fn create --name t1 --pkg <pkg name> --env tensorflow --entrypoint "half_plus_two"
$ fission fn test --name t1 --body '{"instances": [1.0, 2.0, 0.0]}' --method POST
You can’t perform that action at this time.