Skip to content

Commit e2b6bd3

Browse files
committed
feat: build scripts
1 parent 3048abf commit e2b6bd3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tensorflow_serving.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
# base
4+
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
5+
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
6+
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
7+
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
8+
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
9+
10+
# apis
11+
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
12+
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
13+
14+
# format
15+
go fmt ./...

0 commit comments

Comments
 (0)