# Week 2 Assignment 2 alpaca model -data argumentation

**URL:** <https://community.deeplearning.ai/t/week-2-assignment-2-alpaca-model-data-argumentation/177613>\
**Category:** Convolutional Neural Networks\
**Tags:** coursera-platform\
**Created:** [August 4, 2022, 2:23am UTC](https://community.deeplearning.ai/t/week-2-assignment-2-alpaca-model-data-argumentation/177613 "2022-08-04T02:23:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adesh0805](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/adesh0805/32/20575_2.png) [@adesh0805](https://community.deeplearning.ai/u/adesh0805)\
**Post date:** [August 4, 2022, 2:23am UTC](https://community.deeplearning.ai/t/week-2-assignment-2-alpaca-model-data-argumentation/177613/1 "2022-08-04T02:23:44Z")

</div>

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}_

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [August 4, 2022, 3:32am UTC](https://community.deeplearning.ai/t/week-2-assignment-2-alpaca-model-data-argumentation/177613/2 "2022-08-04T03:32:51Z")

</div>

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.
