Error in train step (week-4 assignment 2)

Hi All,

In the train step, I am computing a_G as vgg_model_outputs(generated_image). I am getting this error

I tried to print type(a_G) and it is indeed class list. What am I missing? I was looking at some other posts and it seems people did not have to do any conversions for list to tensor.

Please help.

Try compute_style_cost(…) instead of compute_layer_style_cost(…)

Thanks for help, that worked.