Week 2 Assignment 2 alpaca model -data argumentation

Hi, when I am running the alpaca model function, I am getting the below error from
x = data_augmentation(inputs) call. Not sure whats wrong.
@paulinpaloalto

NotImplementedError: Cannot convert a symbolic Tensor (sequential_18/random_rotation_16/rotation_matrix/strided_slice:0) to a numpy array. This error may indicate that you’re trying to pass a Tensor to a NumPy call, which is not supported

Here is my first few lines of code for the alpaca_model function.

{moderator edit - solution code removed}

The code that you show looks correct to me, as far as it goes. Please show us the full exception trace that you are getting.