Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AI and Deep Learning by (3.4k points)
edited by

Can someone tell me the difference between input_shape, units, dim, etc?

I want to know the attributes referred to the model from the image below, How can I do that?

1 Answer

0 votes
by (46k points)

Input Shape:

In Keras, input layer is a tensor. And should have the same shape as training data.

So the input shape is the one we  have to define because only the user knows it as it's based on training data. Everything else is calculated automatically by model.

Dim:

If the input shape is in 1-D then you can just use input_dim as a scalar number and there's no need to use tuple. But with tensors dim refers to the dimension of tensor.

If you wish to know What is Keras in Artificial Intelligence then visit this Artificial Intelligence Course.

Browse Categories

...