Skip to content

Commit

Permalink
Check in generated pyi files for some py_extension targets.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 570430545
  • Loading branch information
tf-text-github-robot committed Oct 3, 2023
1 parent 4f6f69c commit c9f3682
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tensorflow_text/core/pybinds/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ pybind_extension(
"BuildFastWordpieceModel",
],
copts = ["-fexceptions"],
data = [
"pywrap_fast_wordpiece_tokenizer_model_builder.pyi",
],
enable_stub_generation = True,
features = ["-use_header_modules"],
module_name = "pywrap_fast_wordpiece_tokenizer_model_builder",
srcs_version = "PY3ONLY",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2023 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================

from typing import List

def build_fast_wordpiece_model(arg0: List[str], arg1: int, arg2: str, arg3: str, arg4: bool, arg5: bool) -> bytes: ...

0 comments on commit c9f3682

Please sign in to comment.