<jupyter_start><jupyter_text>tf.zeros_like(tensor, dtype=None, name=None)주어진 tensor와 같은 shape의 zero tensor를 생성한다.<jupyter_code>sess = tf.Session()
zero = tf.zeros_like([2,3], dtype = tf.float32)
print(sess.run(zero))
x = [[1,2],[3,4]] # shape is (1,2)
xx = tf.zeros_like(x, dtype = tf.float32)
print(sess.run(xx))<jupyter_output>[[ 0.  0.]
 [ 0.  0.]]
{'fraction_non_alphanumeric': 0.2022792022792023, 'fraction_numerical': 0.045584045584045586, 'mean_word_length': 5.6415094339622645, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '236539', 'license': 'MIT', 'n_tokens_mistral': 173, 'n_tokens_neox': 174, 'n_words': 29, 'path': 'Tensorflow/.ipynb_checkpoints/zeros_like-checkpoint.ipynb', 'repo_name': 'IzPerfect/My-dictionary', 'size': '351'}