Skip to content

Commit

Permalink
Updated code
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantkashniyal authored and seldondev committed Dec 20, 2019
1 parent 2cb40dd commit e54087d
Show file tree
Hide file tree
Showing 33 changed files with 15 additions and 9,028 deletions.
25 changes: 14 additions & 11 deletions go/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
.PHONY: compile_tensorflow_proto
compile_tensorflow_proto:
./generate_tensorflow_proto.sh
SELDON_CORE_DIR=..

.PHONY: compile_proto
compile_proto: compile_tensorflow_proto
mkdir -p pkg/api
rm -rf pkg/api/tensorflow
cp -r vendor/github.com/tensorflow pkg/api/
cp ../proto/prediction.proto pkg/api
cd pkg/api && protoc -I. -I${CURDIR}/tensorflow --go_out=paths=source_relative,plugins=grpc:. prediction.proto
rm pkg/api/prediction.proto
find ./pkg -name "*.pb.go" -type f -exec perl -e "s/github\.com\/tensorflow/github\.com\/seldonio\/seldon-core\/go\/pkg\/api\/tensorflow/g" -pi {} +
compile_proto:
rm -rf pkg/api && mkdir -p pkg/api

cp ${SELDON_CORE_DIR}/proto/prediction.proto pkg/api

$(MAKE) -C ${SELDON_CORE_DIR}/proto/tensorflow/ create_protos
cp -r $(SELDON_CORE_DIR)/proto/tensorflow/tensorflow pkg/api

cd pkg/api && protoc -I. -I./tensorflow --go_out=paths=source_relative,plugins=grpc:. *.proto
cd pkg/api && protoc -I. -I./tensorflow --go_out=paths=source_relative,plugins=grpc:. ./tensorflow/core/framework/*.proto

find ./pkg -name "*.pb.go" -type f -exec perl -e "s/github\.com\/tensorflow\/tensorflow/github\.com\/seldonio\/seldon-core\/go\/pkg\/api/g" -pi {} +
find ./pkg -name "*.proto" -type f -delete
11 changes: 0 additions & 11 deletions go/generate_tensorflow_proto.sh

This file was deleted.

2 changes: 1 addition & 1 deletion go/pkg/api/prediction.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Loading

0 comments on commit e54087d

Please sign in to comment.