tensor akışı:: işlem:: RegexFullMatch

#include <string_ops.h>

Girişin normal ifade düzeniyle eşleşip eşleşmediğini kontrol edin.

Özet

Giriş herhangi bir şekle sahip bir dize tensörüdür. Desen, giriş tensörünün her elemanına uygulanan bir skaler dizi tensörüdür. Çıkış tensörünün boolean değerleri (Doğru veya Yanlış), girişin sağlanan normal ifade düzeniyle eşleşip eşleşmediğini gösterir.

Desen re2 sözdizimini takip eder ( https://github.com/google/re2/wiki/Syntax )

Örnekler:

tf.strings.regex_full_match(["TF lib", "lib TF"], ".*lib$") tf.strings.regex_full_match(["TF lib", "lib TF"], ".*TF$")

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • girdi: İşlenecek metnin dize tensörü.
  • model: Girişle eşleşecek normal ifadeyi içeren bir skaler dize tensörü.

İadeler:

  • Output : input aynı şekle sahip bir bool tensörü.

Yapıcılar ve Yıkıcılar

RegexFullMatch (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input pattern)

Genel özellikler

operation
output

Kamu işlevleri

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Genel özellikler

operasyon

Operation operation

çıktı

::tensorflow::Output output

Kamu işlevleri

RegexFullMatch

 RegexFullMatch(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input pattern
)

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const