File: build_defs.bzl

package info (click to toggle)
tensorflow 2.14.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 359,396 kB
  • sloc: cpp: 2,418,453; python: 736,954; java: 20,254; ansic: 18,962; sh: 9,279; pascal: 7,941; objc: 1,584; xml: 988; ada: 727; cs: 273; perl: 150; makefile: 92
file content (20 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def if_enable_acl(if_true, if_false = []):
    return select({
        "@org_tensorflow//third_party/compute_library:build_with_acl": if_true,
        "//conditions:default": if_false,
    })

def acl_deps():
    """Returns the correct set of ACL library dependencies.

      Shorthand for select() to pull in the correct set of ACL library deps
      for aarch64 platform

    Returns:
      a select evaluating to a list of library dependencies, suitable for
      inclusion in the deps attribute of rules.
    """
    return select({
        "@org_tensorflow//third_party/compute_library:build_with_acl": ["@compute_library//:arm_compute"],
        "//conditions:default": [],
    })