Guest User

Untitled

a guest
Jan 28th, 2018
939
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. python convert_lambda.py
  2. Using TensorFlow backend.
  3. WARNING:root:Keras version 2.1.3 detected. Last version known to be fully compatible of Keras is 2.0.6 .
  4. WARNING:root:TensorFlow version 1.5.0 detected. Last version known to be fully compatible is 1.2.1 .
  5. _________________________________________________________________
  6. Layer (type) Output Shape Param #
  7. =================================================================
  8. input_1 (InputLayer) (None, 256, 256, 3) 0
  9. _________________________________________________________________
  10. conv2d_1 (Conv2D) (None, 256, 256, 6) 168
  11. _________________________________________________________________
  12. lambda_1 (Lambda) (None, 256, 256, 6) 0
  13. _________________________________________________________________
  14. global_average_pooling2d_1 ( (None, 6) 0
  15. _________________________________________________________________
  16. dense_1 (Dense) (None, 10) 70
  17. =================================================================
  18. Total params: 238
  19. Trainable params: 238
  20. Non-trainable params: 0
  21. _________________________________________________________________
  22. 2018-01-28 14:36:08.655769: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.2 AVX AVX2 FMA
  23. Predicted output:
  24. [[2.2457931e-02 6.9949612e-02 7.5551923e-03 1.3894017e-03 5.5143284e-03
  25. 8.0036414e-01 1.4288375e-02 3.5746139e-04 5.4043387e-03 7.2719224e-02]]
  26.  
  27. Converting the model:
  28. Traceback (most recent call last):
  29. File "convert_lambda.py", line 91, in <module>
  30. custom_conversion_functions={ "Lambda": convert_lambda })
  31. File "/usr/local/lib/python2.7/site-packages/coremltools/converters/keras/_keras_converter.py", line 722, in convert
  32. custom_conversion_functions=custom_conversion_functions)
  33. File "/usr/local/lib/python2.7/site-packages/coremltools/converters/keras/_keras_converter.py", line 527, in convertToSpec
  34. custom_conversion_functions=custom_conversion_functions)
  35. File "/usr/local/lib/python2.7/site-packages/coremltools/converters/keras/_keras2_converter.py", line 173, in _convert
  36. graph.build()
  37. File "/usr/local/lib/python2.7/site-packages/coremltools/converters/keras/_topology2.py", line 634, in build
  38. for node in layer.inbound_nodes:
  39. AttributeError: 'InputLayer' object has no attribute 'inbound_nodes'
Advertisement
Add Comment
Please, Sign In to add comment