wget 'http://storage.googleapis.com/tensorflow-serving-apt/pool/tensorflow-model-server/t/tensorflow-model-server/tensorflow-model-server_1.3.0_all.deb'
dpkg -i tensorflow-model-server_1.3.0_all.deb
Há alguns dias, o Google lançou uma nova versão ( 1.4.0
) de tensorflow-model-server
package [1]. O servidor do modelo Tensorflow pode ser instalado via APT [2].
Eu segui as instruções de instalação deles:
echo "deb [arch=amd64] http://storage.googleapis.com/tensorflow-serving-apt stable tensorflow-model-server tensorflow-model-server-universal" | sudo tee /etc/apt/sources.list.d/tensorflow-serving.list
curl https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg | sudo apt-key add -
sudo apt-get update
No entanto, preciso instalar a versão anterior ( 1.3.0
). apt-cache show tensorflow-model-server
mostra apenas a versão mais recente no meu Ubuntu 16.04:
Package: tensorflow-model-server
Version: 1.4.0
Architecture: all
Maintainer: TensorFlow Serving team
Priority: optional
Section: contrib/devel
Filename: pool/tensorflow-model-server/t/tensorflow-model-server/tensorflow-model-server_1.4.0_all.deb
Size: 74107364
SHA256: 3892446a6b0e1c2e8354df72c9ba7c662c533cc1b4477ee74872b39436892fef
SHA1: 87c961db61e5fc7fe6c7fc3b65e2882ceb06833d
MD5sum: f7d4d26d7bf2b5c2fcaf8e83f85ed77c
Description: TensorFlow Serving ModelServer
Description-md5: 9b7e03f5296f318009581d6e285e2f89
Homepage: https://github.com/tensorflow/serving
Built-Using: Bazel
Portanto, a instalação falha:
$ apt-get install tensorflow-model-server=1.3.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '1.3.0' for 'tensorflow-model-server' was not found
Existe uma maneira de forçar o APT a instalar a versão anterior? Ou eu tenho que baixar manualmente o pacote deb
?
[1] link
[2] link
wget 'http://storage.googleapis.com/tensorflow-serving-apt/pool/tensorflow-model-server/t/tensorflow-model-server/tensorflow-model-server_1.3.0_all.deb'
dpkg -i tensorflow-model-server_1.3.0_all.deb