# Parse\_data\_from\_input

**URL:** <https://community.deeplearning.ai/t/parse-data-from-input/356708>\
**Category:** Convolutional Neural Networks in TensorFlow\
**Tags:** week-module-4\
**Created:** [June 15, 2023, 4:09am UTC](https://community.deeplearning.ai/t/parse-data-from-input/356708 "2023-06-15T04:09:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [June 15, 2023, 4:09am UTC](https://community.deeplearning.ai/t/parse-data-from-input/356708/1 "2023-06-15T04:09:01Z")

</div>

I got this

Training images has shape: (27455, 28, 28) and dtype: \<U3  
Training labels has shape: (27455,) and dtype: \<U2  
Validation images has shape: (7172, 28, 28) and dtype: \<U3  
Validation labels has shape: (7172,) and dtype: \<U2

but expected output is this

```auto
Training images has shape: (27455, 28, 28) and dtype: float64
Training labels has shape: (27455,) and dtype: float64
Validation images has shape: (7172, 28, 28) and dtype: float64
Validation labels has shape: (7172,) and dtype: float64

```

where I am going wrong??

@balaji.ambresh

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [June 15, 2023, 4:49am UTC](https://community.deeplearning.ai/t/parse-data-from-input/356708/2 "2023-06-15T04:49:35Z")

</div>

I solved the issue by adding as.type('float64) to the images and labels.
