diff --git a/WORKSPACE b/WORKSPACE index 6d918ea19..91ecbde03 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -4,7 +4,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # Note: zlib is placed earlier as tensorflow's zlib does not include unzip http_archive( + name = "zlib", + build_file = "//third_party:zlib.BUILD", sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1", strip_prefix = "zlib-1.2.11", diff --git a/setup.py b/setup.py index 388030155..90792e3ed 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ assert sum(e.startswith("require = ") for e in entries) == 1 version = list(e[10:] for e in entries if e.startswith("version = "))[0].strip('"') require = list(e[10:] for e in entries if e.startswith("require = "))[0].strip('"') - assert version != "" + assert version != "" assert require != "" if "--install-require" in sys.argv: diff --git a/tensorflow_io/core/kernels/image_avif_kernels.cc b/tensorflow_io/core/kernels/image_avif_kernels.cc index 2175b494d..3f2a8da2f 100644 --- a/tensorflow_io/core/kernels/image_avif_kernels.cc +++ b/tensorflow_io/core/kernels/image_avif_kernels.cc @@ -14,15 +14,19 @@ limitations under the License. ==============================================================================*/ #include "avif/avif.h" + + #include "tensorflow/core/framework/op_kernel.h" namespace tensorflow { namespace io { + + namespace { class DecodeAVIFOp : public OpKernel { public: - explicit DecodeAVIFOp(OpKernelConstruction* context) : OpKernel(context) {} + explicit DecodeAVIFOp(OpKernelConstruction* context) : OpKernel(context) {} void Compute(OpKernelContext* context) override { const Tensor& contents_tensor = context->input(0);