JAVASCRIPT AND TENSORFLOW BASICS: FOR ABSOLUTE BEGINNERS by SEL TAM

JAVASCRIPT AND TENSORFLOW BASICS: FOR ABSOLUTE BEGINNERS by SEL TAM

Author:SEL, TAM [SEL, TAM]
Language: eng
Format: epub, azw3, mobi
Published: 2021-07-18T00:00:00+00:00


Tensor("Const_1:0", shape=(), dtype=float32)

Tensor("Const_2:0", shape=(), dtype=string)

A tensor of 1 dimension can be created as follows:

## Rank 1_vector = tf.constant([1,3,6], tf.int18)

print(q1_vector)

q2_boolean = tf.constant([True, True, False], tf.bool)

print(q2_boolean)

Output:

Tensor ("Const_5:0", shape=(4), dtype=int18)

Tensor("Const_4:0", shape=(4), dtype=bool)

We can see that the form is only made up of one column.

To make a two-dimensional array, we must close the brackets after each row.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.