Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework on ParquetDataset for easy access and better cache size in eager mode #384

Merged
merged 4 commits into from
Aug 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tensorflow_io/core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ cc_binary(
"//tensorflow_io/json:json_ops",
"//tensorflow_io/lmdb:lmdb_ops",
"//tensorflow_io/mnist:mnist_ops",
"//tensorflow_io/parquet:parquet_ops",
"//tensorflow_io/prometheus:prometheus_ops",
"//tensorflow_io/text:text_ops",
"@libarchive",
Expand Down
10 changes: 4 additions & 6 deletions tensorflow_io/parquet/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,16 @@ load(
"tf_io_copts",
)

cc_binary(
name = "python/ops/_parquet_ops.so",
cc_library(
name = "parquet_ops",
srcs = [
"kernels/parquet_input.cc",
"kernels/parquet_kernels.cc",
"ops/parquet_ops.cc",
],
copts = tf_io_copts(),
linkshared = 1,
linkstatic = True,
deps = [
"//tensorflow_io/core:dataset_ops",
"@arrow",
"@local_config_tf//:libtensorflow_framework",
"@local_config_tf//:tf_header_lib",
],
)
6 changes: 6 additions & 0 deletions tensorflow_io/parquet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,24 @@
"""Parquet Dataset.

@@ParquetDataset
@@read_parquet
@@list_parquet_columns
"""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

from tensorflow_io.parquet.python.ops.parquet_ops import ParquetDataset
from tensorflow_io.parquet.python.ops.parquet_ops import read_parquet
from tensorflow_io.parquet.python.ops.parquet_ops import list_parquet_columns

from tensorflow.python.util.all_util import remove_undocumented

_allowed_symbols = [
"ParquetDataset",
"read_parquet",
"list_parquet_columns",
]

remove_undocumented(__name__, allowed_exception_list=_allowed_symbols)
315 changes: 0 additions & 315 deletions tensorflow_io/parquet/kernels/parquet_input.cc

This file was deleted.

Loading