Windows 10上的tensorflow v2.0.0-alpha0构建错误``swif''

时间:2019-03-26 14:55:12

标签: tensorflow build windows-10

我正在尝试在Windows 10上构建tensorflow v2.0.0-alpha0。我遵循this guide,我遵循了每个步骤。我正在使用此命令进行构建:

security:
    encoders:
        App\Entity\User:
            algorithm: argon2i
            cost: 12

    # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
    providers:
        # used to reload user from session & other features (e.g. switch_user)
        app_user_provider:
            entity:
                class: App\Entity\User
                property: username
    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false
        main:
            anonymous: ~

            # activate different ways to authenticate

            # http_basic: true
            # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate

            # form_login: true
            # https://symfony.com/doc/current/security/form_login_setup.html

    # Easy way to control access for large sections of your site
    # Note: Only the *first* access control that matches will be used
    access_control:
        # - { path: ^/admin, roles: ROLE_ADMIN }
        # - { path: ^/profile, roles: ROLE_USER }

哪个给我这个错误:

bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

环境是:

  • Windows 10 x64
  • Python 3.6.6 x64
  • bazel v0.23.0
  • CUDA v10.1 x64
  • cuDNN v10.1 x64

我尝试了herehere的解决方案,但没有任何乐趣。

我们将不胜感激任何帮助。

1 个答案:

答案 0 :(得分:0)

在tensorflow根目录的WORKSPACE文件中删除以下行:

# Apple and Swift rules.
http_archive(
    name = "build_bazel_rules_apple",
    sha256 = "73b4980a318d203d3307f850e27e66ec5cc8d223147a3475a6f11597eb6438a5",
    strip_prefix = "rules_apple-0.13.0",
    urls = ["https://github.com/bazelbuild/rules_apple/archive/0.13.0.tar.gz"],
)
http_file(
    name = "xctestrunner",
    executable = 1,
    urls = ["https://github.com/google/xctestrunner/releases/download/0.2.6/ios_test_runner.par"],
)
load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies")
apple_rules_dependencies()
load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies")
swift_rules_dependencies()

这些行似乎将构建其他平台不需要的Apple MacOS版本。