blob: f54726bd49956d2943760b02e45656ef4b423dd5 [file] [log] [blame]
load("@flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
package(
default_visibility = [
"//visibility:public",
],
licenses = ["notice"],
)
exports_files(
srcs = ["schema.fbs"],
)
flatbuffer_cc_library(
name = "schema_fbs",
srcs = ["schema.fbs"],
)
# Generic schema for inference on device (but with reflections makes bigger).
flatbuffer_cc_library(
name = "schema_fbs_with_reflection",
srcs = ["schema.fbs"],
flatc_args = [
"--reflect-types",
"--reflect-names",
"--no-union-value-namespacing",
"--gen-object-api",
],
out_prefix = "reflection/",
)
cc_library(
name = "schema_utils",
srcs = ["schema_utils.cc"],
hdrs = ["schema_utils.h"],
deps = [
":schema_fbs",
"//tensorflow/compiler/mlir/lite/kernels/internal:compatibility_macros",
"@flatbuffers//:runtime_cc",
],
)