-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtensorflow_serving.sh
More file actions
executable file
·15 lines (12 loc) · 1.36 KB
/
tensorflow_serving.sh
File metadata and controls
executable file
·15 lines (12 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# base
protoc -I. -I ${GOPATH}/src/github.com/tensorflow/tensorflow --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative tensorflow_serving/util/*.proto
protoc -I. -I ${GOPATH}/src/github.com/tensorflow/tensorflow --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative tensorflow_serving/config/*.proto
protoc -I. -I ${GOPATH}/src/github.com/tensorflow/tensorflow --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative tensorflow_serving/sources/storage_path/*.proto
protoc -I. -I ${GOPATH}/src/github.com/tensorflow/tensorflow --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative tensorflow_serving/core/*.proto
protoc -I. -I ${GOPATH}/src/github.com/tensorflow/tensorflow --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative tensorflow_serving/example/*.proto
# apis
protoc -I. -I ${GOPATH}/src/github.com/tensorflow/tensorflow --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative tensorflow_serving/apis/*.proto
protoc -I. -I ${GOPATH}/src/github.com/tensorflow/tensorflow --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative tensorflow_serving/apis/internal/*.proto
# format
go fmt ./...