tfservable-proxy

command module
v0.0.0-...-d1695c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

tfservable-proxy

Install

glide install
Run
go run  tfproxy.go --port 8082 --timeout 3000

curl -X POST -d '{"features":[{"x":{"Float":70},"y":{"Float":50}},{"x":{"Float":50},"y":{"Float":70}}]}' -H 'PROXY_ADDR: test.21-kuberlab-demo' -H 'PROXY_PORT: 9000' http://127.0.0.1:8082/api/v2/tfproxy/test

curl -X POST -F float_x=1 -F float_y=49 http://127.0.0.1:8082/proxy/localhost/9000/test

curl -X POST -F float_x=1 -F float_y=49 -H 'PROXY_ADDR: test.21-kuberlab-demo' -H 'PROXY_PORT: 9000' http://127.0.0.1:8082/api/v2/tfproxy/test

curl -X POST -F byte_image=@Kuberlab_head1.jpg -F raw_input=yes -F out_mime_type=image/png -F out_filters=result -H 'PROXY_ADDR: styles-serving-train-4.21-kuberlab-demo' -H 'PROXY_PORT: 9000' http://127.0.0.1:8082/api/v2/tfproxy/styles/transform > result.png

curl -X POST -F byte_inputs=@pet2.jpg -F raw_input=yes -H 'PROXY_ADDR: object-detection.21-kuberlab-demo' -H 'PROXY_PORT: 9000' http://127.0.0.1:8082/api/v2/tfproxy/object-detection-pets

curl -X POST -F uint8_inputs=@pet2.jpg -F raw_input=yes -H 'PROXY_ADDR: 127.0.0.1' -H 'PROXY_PORT: 9000' http://127.0.0.1:8082/proxy/object-detection-pets

curl -X POST -F strings_inputs=@pet2.jpg -F raw_input=yes -H 'PROXY_ADDR: 127.0.0.1' -H 'PROXY_PORT: 9000' http://127.0.0.1:8082/proxy/object-detection-pets

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
tensorflow/compiler/aot
Package aot is a generated protocol buffer package.
Package aot is a generated protocol buffer package.
tensorflow/compiler/xla
Package xla is a generated protocol buffer package.
Package xla is a generated protocol buffer package.
tensorflow/compiler/xla/service
Package service is a generated protocol buffer package.
Package service is a generated protocol buffer package.
tensorflow/contrib/boosted_trees/proto
Package proto is a generated protocol buffer package.
Package proto is a generated protocol buffer package.
tensorflow/contrib/cloud/kernels
Package kernels is a generated protocol buffer package.
Package kernels is a generated protocol buffer package.
tensorflow/contrib/decision_trees/proto
Package proto is a generated protocol buffer package.
Package proto is a generated protocol buffer package.
tensorflow/contrib/mpi
Package mpi is a generated protocol buffer package.
Package mpi is a generated protocol buffer package.
tensorflow/contrib/session_bundle
Package session_bundle is a generated protocol buffer package.
Package session_bundle is a generated protocol buffer package.
tensorflow/contrib/tensor_forest/proto
Package proto is a generated protocol buffer package.
Package proto is a generated protocol buffer package.
tensorflow/contrib/tensorboard/graph_explorer/proto
Package proto is a generated protocol buffer package.
Package proto is a generated protocol buffer package.
tensorflow/contrib/tensorboard/plugins/projector
Package projector is a generated protocol buffer package.
Package projector is a generated protocol buffer package.
tensorflow/contrib/tensorboard/plugins/trace
Package trace is a generated protocol buffer package.
Package trace is a generated protocol buffer package.
tensorflow/contrib/training/python/training
Package training is a generated protocol buffer package.
Package training is a generated protocol buffer package.
tensorflow/contrib/verbs
Package verbs is a generated protocol buffer package.
Package verbs is a generated protocol buffer package.
tensorflow/core/debug
Package debug is a generated protocol buffer package.
Package debug is a generated protocol buffer package.
tensorflow/core/example
Package example is a generated protocol buffer package.
Package example is a generated protocol buffer package.
tensorflow/core/framework
Package framework is a generated protocol buffer package.
Package framework is a generated protocol buffer package.
tensorflow/core/grappler/costs
Package costs is a generated protocol buffer package.
Package costs is a generated protocol buffer package.
tensorflow/core/lib/core
Package core is a generated protocol buffer package.
Package core is a generated protocol buffer package.
tensorflow/core/protobuf
Package protobuf is a generated protocol buffer package.
Package protobuf is a generated protocol buffer package.
tensorflow/core/util
Package util is a generated protocol buffer package.
Package util is a generated protocol buffer package.
tensorflow/python/framework
Package framework is a generated protocol buffer package.
Package framework is a generated protocol buffer package.
tensorflow/python/training
Package training is a generated protocol buffer package.
Package training is a generated protocol buffer package.
tensorflow/python/util/protobuf
Package protobuf is a generated protocol buffer package.
Package protobuf is a generated protocol buffer package.
tensorflow/tools/api/lib
Package lib is a generated protocol buffer package.
Package lib is a generated protocol buffer package.
tensorflow/tools/proto_text
Package proto_text is a generated protocol buffer package.
Package proto_text is a generated protocol buffer package.
tensorflow/tools/tfprof
Package tfprof is a generated protocol buffer package.
Package tfprof is a generated protocol buffer package.
tensorflow_serving/apis
Package apis is a generated protocol buffer package.
Package apis is a generated protocol buffer package.
tensorflow_serving/apis/internal
Package internal is a generated protocol buffer package.
Package internal is a generated protocol buffer package.
tf

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL