Skip to content
Advertisement

How to create a tensor from another tensor like tf.constant and number?

I want to use the value in a tensor to create another tensor, but I got the following error:

JavaScript

How can I use the value in tensor a?

Advertisement

Answer

You can use tf.stack.

JavaScript

Check function:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement