Hi I am working on the final question for assignment 2 week 4 and I am getting the following error. AttributeError: in user code:
<ipython-input-111-402674422ff3>:19 train_step *
J_style = compute_layer_style_cost(a_S, a_G)
<ipython-input-44-8099f13b9e98>:16 compute_layer_style_cost *
m, n_H, n_W, n_C = a_G.get_shape().as_list()
AttributeError: 'list' object has no attribute 'get_shape'
But I am using the code suggested in the notebook to calculate a_G so I am not sure what I should modify to rectify this issue. The rest of my code looks like this. Any help would be greatly appreciated.
RESOLUTION + NEW PROBLEM: I was using compute_layer_style_cost instead of compute_style_cost which allowed me to pass the tests but after submitting it marked that function incorrect. How is this possible? How do I know what I did wrong?
{moderator edit - solution code removed}