-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2cb40dd
commit e54087d
Showing
33 changed files
with
15 additions
and
9,028 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
134 changes: 0 additions & 134 deletions
134
go/pkg/api/tensorflow/tensorflow/tensorflow/go/core/example/example.pb.go
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.