<jupyter_start><jupyter_text>Operations with tensors<jupyter_code>!pip install tensorflow==2.0.0-rc1
import tensorflow as tf
tf.__version__
tensor = tf.constant([[5,3],[2,8]])
tensor.numpy()
tensor + 4
tensor * 5
tensor - 10
import numpy as np
 np.square(tensor)
np.sqrt(tensor)
another = tf.constant([[2,1],[5,21]])
another.numpy()
tensor.numpy()
np.dot(another, tensor)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16209476309226933, 'fraction_numerical': 0.04239401496259352, 'mean_word_length': 7.04, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '167847', 'license': 'Apache-2.0', 'n_tokens_mistral': 166, 'n_tokens_neox': 155, 'n_words': 31, 'path': 'notebook/2. TensorFlow_2_0_Operations_with_tensors.ipynb', 'repo_name': 'interviewBubble/TensorFlow-2.0-tutorial', 'size': '401'}