mediapipe/third_party/libtorch_linux.BUILD
Pierre Fenoll 1f121dd3eb CPU inference on desktop Linux with PyTorch v1.4.0
Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com>
2020-10-17 21:03:22 +02:00

33 lines
992 B
Plaintext

# Copyright 2020 The MediaPipe Authors.
#
# 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.
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "libtorch_cpu",
srcs = glob([
"lib/libc10.so",
"lib/libgomp-*.so.1",
"lib/libtorch.so",
]),
hdrs = glob(["include/**/*.h"]),
includes = [
"include",
"include/TH",
"include/THC",
"include/torch/csrc/api/include",
],
visibility = ["//visibility:public"],
)