Skip to content

Please explain the difference between Vector, Scalar and Matrix #261

Answered by lsmliborio
Cutesurd asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @Cutesurd. You are creating two equal objects with different names.

When you assign variables matrix = and vector = , these are just names of your choice, but doesn't make a difference on what it contains. The content for both is tf.constant([[[10,10],[10,10]],[[7,7],[7,7]],[[8,8],[8,8]]]), and that is a tensor with 3 dims.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mrdbourke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants