header_file = name + ".h"
metadata_object_file = name + "_tfcompile_metadata.o"
function_object_file = name + "_tfcompile_function.o"
- ep = ("__" + PACKAGE_NAME + "__" + name).replace("/", "_")
+ ep = ("__" + native.package_name() + "__" + name).replace("/", "_")
if type(tfcompile_flags) == type(""):
flags = tfcompile_flags
else:
return src.replace("/", "_").split(".")[0]
def full_path(relative_paths):
- return [PACKAGE_NAME + "/" + relative for relative in relative_paths]
+ return [native.package_name() + "/" + relative for relative in relative_paths]
# List of proto files for android builds
def tf_android_core_proto_sources(core_proto_sources_relative):
# deployed. Other shared object dependencies (e.g. shared between contrib/
# ops) are picked up as long as they are in either the same or a parent
# directory in the tensorflow/ tree.
- levels_to_root = PACKAGE_NAME.count("/") + name.count("/")
+ levels_to_root = native.package_name().count("/") + name.count("/")
return select({
clean_dep("//tensorflow:darwin"): [
"-Wl,%s" % (_make_search_paths("@loader_path", levels_to_root),),
size = "large",
srcs = ["//tensorflow/tools/test:run_and_gather_logs"],
args = [
- "--name=//%s:%s" % (PACKAGE_NAME, name),
+ "--name=//%s:%s" % (native.package_name(), name),
"--test_name=" + target,
"--test_args=--benchmarks=%s" % benchmarks,
"--benchmark_type=%s" % benchmark_type,