Keras import - remove debug lines (println/log) [WIP] (#459)
* Remove debug line from KerasConvolution2D Signed-off-by: Alex Black <blacka101@gmail.com> * Remove more debug lines Signed-off-by: Alex Black <blacka101@gmail.com>
This commit is contained in:
		
							parent
							
								
									5e55e92002
								
							
						
					
					
						commit
						f547f783d9
					
				| @ -128,8 +128,6 @@ public class KerasInput extends KerasLayer { | ||||
|                 break; | ||||
|             case 2: | ||||
|                 if(this.dimOrder != null) { | ||||
|                     System.out.println("Dim order: " + this.dimOrder); | ||||
|                     System.out.println("Input shape: " + ArrayUtils.toString(this.inputShape)); | ||||
|                     switch (this.dimOrder) { | ||||
|                         case TENSORFLOW:    //NWC == channels_last | ||||
|                             myInputType = new InputType.InputTypeRecurrent(this.inputShape[1], this.inputShape[0], RNNFormat.NWC); | ||||
|  | ||||
| @ -103,7 +103,7 @@ public class TFOpLayerImpl extends AbstractLayer<TFOpLayer> { | ||||
|                 String dtype = inputDataTypes.get(inpName); | ||||
|                 graph = "node{\nname: \"" + inpName + "\"\nop: \"Placeholder\"\nattr{\nkey: \"dtype\"\n value {\n type: " + dtype + "}\n}\n}\n" + graph; | ||||
|             } | ||||
|             log.info(graph); | ||||
|             //log.info(graph); | ||||
|             GraphDef.Builder graphDefBuilder = GraphDef.newBuilder(); | ||||
|             TextFormat.getParser().merge(graph, graphDefBuilder); | ||||
|             GraphDef graphDef = graphDefBuilder.build(); | ||||
|  | ||||
| @ -95,7 +95,6 @@ public class KerasConvolution2D extends KerasConvolution { | ||||
|         LayerConstraint weightConstraint = KerasConstraintUtils.getConstraintsFromConfig( | ||||
|                 layerConfig, conf.getLAYER_FIELD_W_CONSTRAINT(), conf, kerasMajorVersion); | ||||
| 
 | ||||
|         System.out.println("----" + dimOrder); | ||||
|         ConvolutionLayer.Builder builder = new ConvolutionLayer.Builder().name(this.layerName) | ||||
|                 .nOut(getNOutFromConfig(layerConfig, conf)).dropOut(this.dropout) | ||||
|                 .activation(getIActivationFromConfig(layerConfig, conf)) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user