Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: Pełne dopasowanie Regex
#include <string_ops.h>
Sprawdź, czy dane wejściowe pasują do wzorca wyrażenia regularnego.
Streszczenie
Dane wejściowe to tensor strunowy o dowolnym kształcie. Wzorzec jest skalarnym tensorem struny, który jest stosowany do każdego elementu tensora wejściowego. Wartości logiczne (prawda lub fałsz) tensora wyjściowego wskazują, czy dane wejściowe odpowiadają podanemu wzorcowi wyrażenia regularnego.
Wzór jest zgodny ze składnią re2 ( https://github.com/google/re2/wiki/Syntax )
Argumenty:
- zakres: Obiekt Scope
- dane wejściowe: tensor ciągu tekstu, który ma zostać przetworzony.
- wzór: tensor łańcucha skalarnego zawierający wyrażenie regularne pasujące do danych wejściowych.
Zwroty:
-
Output
: Tensor boolowy o takim samym kształcie jak input
.
Atrybuty publiczne
Funkcje publiczne
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() const
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-27 UTC."],[],[],null,["# tensorflow::ops::RegexFullMatch Class Reference\n\ntensorflow::ops::RegexFullMatch\n===============================\n\n`#include \u003cstring_ops.h\u003e`\n\nCheck if the input matches the regex pattern.\n\nSummary\n-------\n\nThe input is a string tensor of any shape. The pattern is a scalar string tensor which is applied to every element of the input tensor. The boolean values (True or False) of the output tensor indicate if the input matches the regex pattern provided.\n\nThe pattern follows the re2 syntax (\u003chttps://github.com/google/re2/wiki/Syntax\u003e)\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- input: A string tensor of the text to be processed.\n- pattern: A scalar string tensor containing the regular expression to match the input.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A bool tensor with the same shape as `input`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [RegexFullMatch](#classtensorflow_1_1ops_1_1_regex_full_match_1a9aabe9286270dc27b6fd82316259b98e)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` pattern)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_regex_full_match_1a42931e9f1b9b6a6bcf35282d06977871) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_regex_full_match_1a2347cdeb355a1b911773cfbabbffd8b8) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_regex_full_match_1a736ef64245d191a4ff7e4c67d8e655bd)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_regex_full_match_1a1b4546c550f423ff22828fc63e04ae23)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_regex_full_match_1a3552df1d0b65b824e61669da96bf8f10)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### RegexFullMatch\n\n```gdscript\n RegexFullMatch(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input pattern\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n```"]]