ONLINE SUMMER TRAINING Online Courses Free Tutorials 
 Placement Preparation 
Artificial Intelligence(AI) & Machine Learning(ML) Training in Jaipur
0 like 0 dislike
in Artificial Intelligence(AI) & Machine Learning by Goeduhub's Expert (3.1k points)

Goeduhub's Online Courses @Udemy

For Indian Students- INR 570/- || For International Students- $12.99/-


Course Name

Apply Coupon


Tensorflow 2 & Keras:Deep Learning & Artificial Intelligence

Apply Coupon


Computer Vision with OpenCV | Deep Learning CNN Projects

Apply Coupon


Complete Machine Learning & Data Science with Python Apply Coupon


Natural Language Processing-NLP with Deep Learning in Python Apply Coupon


Computer Vision OpenCV Python | YOLO| Deep Learning in Colab Apply Coupon


Complete Python Programming from scratch with Projects Apply Coupon

1 Answer

0 like 0 dislike
by Goeduhub's Expert (3.1k points)
Best answer return slices of an array in object form. 

Basically when we convert a complex input pipeline into a simple input pipeline, we use API in tensorflow.

For example for text data we do preprocessing of data : removing symbols, embedding  and batching different length sequences together etc...

So, basically with help of  we can handle these complex processes and  large amount of data.

To convert a complex input pipeline into simple input pipeline, first we need data. For example 

We use or to construct a Dataset from data in the memory.

Now let's see an example.

#import tensorflow 

import tensorflow as tf  

# use of method

dataset =[1, 2, 3, 4, 5, 6])

for elem in dataset:



# import tensorflow 

import tensorflow as tf  

# use of method

dataset =[[8, 3] , [9, 2]])



tf.Tensor([8 3], shape=(2,), dtype=int32)

Note: Actually creating a simple pipeline in machine learning is always challenging then model building. we can use for data in tensorflow.

Our Mentors(For AI-ML)

Sharda Godara Chaudhary

Mrs. Sharda Godara Chaudhary

An alumna of MNIT-Jaipur and ACCENTURE, Pune


Ms. Nisha

An alumna of IIT-BHU


About Us | Contact Us || Terms & Conditions | Privacy Policy || Youtube Channel || Telegram Channel © Social::   |  |