jpmml / jpmml-tensorflow

Java library and command-line application for converting TensorFlow models to PMML
GNU Affero General Public License v3.0
75 stars 27 forks source link

tensorflow 1.6 + protoc 3.5.1 compilation #6

Closed Debasish-Das-CK closed 6 years ago

Debasish-Das-CK commented 6 years ago

I am getting compilation errors:

[INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /Users/debasish.das/creditkarma/jpmml-tensorflow/src/main/java/org/jpmml/tensorflow/SavedModel.java:[136,50] incompatible types: java.util.List<org.tensorflow.Tensor<?>> cannot be converted to java.util.List [ERROR] /Users/debasish.das/creditkarma/jpmml-tensorflow/target/generated-sources/protobuf/java/org/tensorflow/framework/MetaGraphDef.java:[63,18] cannot find symbol symbol: method parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int) location: class org.tensorflow.framework.MetaGraphDef

Does the library depend on specific version of tensorflow and protoc ?

Debasish-Das-CK commented 6 years ago

I tried with protoc-3.2.0 and tensorflow 1.1.0 but I am still getting the same issue...

[INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /Users/debasish.das/creditkarma/jpmml-tensorflow/src/main/java/org/jpmml/tensorflow/SavedModel.java:[136,50] incompatible types: java.util.List<org.tensorflow.Tensor<?>> cannot be converted to java.util.List [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.331 s [INFO] Finished at: 2018-03-08T15:20:06-08:00 [INFO] Final Memory: 28M/431M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project jpmml-tensorflow: Compilation failure [ERROR] /Users/debasish.das/creditkarma/jpmml-tensorflow/src/main/java/org/jpmml/tensorflow/SavedModel.java:[136,50] incompatible types: java.util.List<org.tensorflow.Tensor<?>> cannot be converted to java.util.List