Siz tf.where-dan tf.greater bilan birgalikda 0 dan katta bo'lgan barcha qiymatlarni tanlash uchun foydalanishingiz mumkin. Mana, buni qanday qilish kerakligini ko'rsatadigan kod parchasi: ``` import tensorflow as tf # Ba'zi qiymatlarga ega bo'lgan tensor yarating x = tf.constant (([-1, 0, 1, 2, 3, 4], dtype=tf.float32) # 0 dan katta bo'lgan qiymatlarni tanlash uchun tf.where-dan foydalaning greater_than_zero = tf.where (((tf.greater (((x, 0)) # Tanlangan qiymatlarni bosib chiqarish print "(0 dan katta bo'lgan qiymat: ", greater_than_zero) ``` Ushbu misolda biz avval x ning ba'zi qiymatlari bilan tensor yaratamiz. Keyin biz tf.greater ((x, 0) dan foydalanib, True 0 dan katta
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence