zaidalyafeai / Swift4TF

A set of notebooks explaining swift for tensorflow optimized to run in Google Collaboratory.
139 stars 17 forks source link

Error setting up VGG 16 Model #3

Open monadical opened 5 years ago

monadical commented 5 years ago

When setting up VGG 16 model, specifically defining the structure, I get the following:

error: <Cell 7>:1:8: error: type 'VGG16' does not conform to protocol 'Layer' struct VGG16: Layer { ^

TensorFlow.Layer:2:20: note: protocol requires nested type 'Input'; do you want to add it? associatedtype Input : Differentiable ^

TensorFlow.Layer:3:20: note: protocol requires nested type 'Output'; do you want to add it? associatedtype Output : Differentiable ^

monadical commented 5 years ago

This was in the DeepDream example

rickwierenga commented 4 years ago

This should fix it for transfer learning. Is the other notebook updated yet? Same fix should work there too.