Question: Write TensorFlow code to provide the solutions to the following simple problems: 1 . Declare two constant tensors that have the values of 1 5
Write TensorFlow code to provide the solutions to the following simple problems:
Declare two constant tensors that have the values of and Add these two tensors and print
out the results.
Declare two variable tensors, a and b that are initialized with scalar values of and Find
their product and print out the result.
Create two placeholders: x and y that are both scalars of bit floats. Assign to x and
to y multiply them together, and print out the results.
Create one placeholder: z that is an NDimensional array N can be that can have any
shape shape None Feed this vector into z and multiply it by Display the
results.
Create a constant tensor that is a matrix of the shape The matrix is initialized with all
ones Create a variable tensor that is also a matrix of the shape and initialized with
random integer values between and Add these two tensors and display the results.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
