-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Add tensorflow-text package #29008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Add tensorflow-text package #29008
Changes from 15 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
e13cf3e
Add tensorflow-text package
ehfd 7426387
Fix recipes
ehfd 2b46c5a
Fix for requirements_lock.txt
ehfd 8944d36
Fix hash
ehfd 4fcb387
Try to resolve build
ehfd 0b5f21a
Try more fixes
ehfd 6df5c89
Take suggestions
ehfd dd8baae
Revert incorrect commit
ehfd 08d6e12
Fix hash
ehfd e687cbe
Fix various aspects
ehfd 4872455
Fix syntax
ehfd 3209ae2
Add selectors
ehfd f72b819
Take suggestion
ehfd 77e0e06
Take suggestions
ehfd 1b3ccd9
Add explicit tensorflow runtime dependency
ehfd 1ad6069
Update Bazel
ehfd 3d244f6
Sync Bazel with Tensorflow
ehfd 75687a0
Throw some options in
ehfd 94995a5
Fix script
ehfd 757f09a
Build in progress
ehfd 18a33ca
Script check
ehfd 7be2452
Add abseil
hmaarrfk 4cbccc2
Merge branch 'main' into tensorflow-text
hmaarrfk 08a886e
Update to 2.18.1
hmaarrfk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -exuo pipefail | ||
|
|
||
| export HERMETIC_PYTHON_VERSION=$(${PYTHON} -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')") | ||
|
|
||
| WHEEL_DIR=${PWD}/wheel_dir | ||
| mkdir -p ${WHEEL_DIR} | ||
| bazel build ./oss_scripts/pip_package:build_pip_package | ||
| bazel-bin/text/oss_scripts/pip_package/build_pip_package ${WHEEL_DIR} | ||
| ${PYTHON} -m pip install --no-deps ${WHEEL_DIR}/*.whl | ||
| bazel clean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| {% set version = "2.17.0" %} | ||
| {% set tensorflow_version = ".".join(version.split(".")[:2]) %} | ||
|
|
||
| package: | ||
| name: tensorflow-text | ||
| version: {{ version }} | ||
|
|
||
| source: | ||
| url: https://github.com/tensorflow/text/archive/v{{ version }}.tar.gz | ||
| sha256: 55bff24f120024664124c8fdc0ab842ab314bd5ff2791770a80f32bb67cb26d1 | ||
|
|
||
| build: | ||
| number: 0 | ||
| skip: true # [win] | ||
| string: cuda{{ cuda_compiler_version | replace('.', '') }}py{{ CONDA_PY }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }} # [cuda_compiler_version != "None"] | ||
| string: cpu_py{{ CONDA_PY }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }} # [cuda_compiler_version == "None"] | ||
|
|
||
| requirements: | ||
| build: | ||
| - {{ compiler('c') }} | ||
| - {{ stdlib('c') }} | ||
| - {{ compiler('cxx') }} | ||
| - {{ compiler('cuda') }} # [cuda_compiler_version != "None"] | ||
| - bazel >=5.2.0 | ||
| host: | ||
| - python | ||
| - pip | ||
| - packaging | ||
| - setuptools >=70 | ||
| - wheel | ||
| - absl-py | ||
| - tensorflow {{ tensorflow_version }} | ||
| - tensorflow-base *=cuda* # [cuda_compiler_version != "None"] | ||
| - tensorflow-base *=cpu* # [cuda_compiler_version == "None"] | ||
| run: | ||
| - python | ||
| - tensorflow {{ tensorflow_version }} | ||
| - tensorflow-base *=cuda* # [cuda_compiler_version != "None"] | ||
| - tensorflow-base *=cpu* # [cuda_compiler_version == "None"] | ||
|
|
||
| test: | ||
| requires: | ||
| - pip | ||
| - absl-py | ||
| - pytest | ||
| - tf-keras | ||
| - tensorflow-datasets >=3.2.0 | ||
| commands: | ||
| - pip check | ||
|
|
||
| about: | ||
| home: https://www.tensorflow.org/text/ | ||
| license: Apache-2.0 | ||
| license_family: Apache | ||
| license_file: LICENSE | ||
| summary: TF.Text is a TensorFlow library of text related ops, modules, and subgraphs. | ||
| dev_url: https://github.com/tensorflow/text | ||
|
|
||
| extra: | ||
| recipe-maintainers: | ||
| - ehfd | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.