代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/TensorFlow.js 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@rules_python//python:pip.bzl", "pip_install")
load(":python_packages.bzl", "PYTHON_PACKAGES")
def python_repositories():
"""Load and register python toolchains from PYTHON_PACKAGES.
Declare `http_archive`s, register toolchains, and define `pip_install`
external repositories for each platform in PYTHON_PACKAGES.
"""
for name, platform_data in PYTHON_PACKAGES.items():
if name not in native.existing_rules():
py2 = platform_data.python2 if "python2" in dir(platform_data) else None
py3 = platform_data.python3
if py2:
http_archive(
name = "python2_interpreter_%s" % name,
build_file_content = py2.build_file_content,
patch_cmds = py2.patch_cmds,
sha256 = py2.sha256,
strip_prefix = py2.strip_prefix,
urls = py2.urls,
)
http_archive(
name = "python3_interpreter_%s" % name,
build_file_content = py3.build_file_content,
patch_cmds = py3.patch_cmds,
sha256 = py3.sha256,
strip_prefix = py3.strip_prefix,
urls = py3.urls,
)
native.register_toolchains("@//:tfjs_py_toolchain_%s" % name)
# Create a central external repo, @tensorflowjs_dev_deps, that
# contains Bazel targets for all the third-party packages specified
# in the requirements.txt file.
interpreter = "@python3_interpreter_%s//:%s" % (name, py3.python_interpreter)
pip_install(
name = "tensorflowjs_dev_deps_%s" % name,
python_interpreter_target = interpreter,
requirements = "@//tfjs-converter/python:requirements-dev.txt",
)
pip_install(
name = "tensorflowjs_deps_%s" % name,
python_interpreter_target = interpreter,
requirements = "@//tfjs-converter/python:requirements.txt",
)
# Create an external repo for python deps that relies on the default
# python interpreter.
pip_install(
name = "tensorflowjs_dev_deps",
requirements = "@//tfjs-converter/python:requirements-dev.txt",
)
pip_install(
name = "tensorflowjs_deps",
requirements = "@//tfjs-converter/python:requirements.txt",
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。