Skip to content
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
3 changes: 2 additions & 1 deletion tensorflow_io/core/python/api/experimental/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
# ==============================================================================
"""tensorflow_io.experimental"""

from tensorflow_io.core.python.experimental.io_tensor import IOTensor
from tensorflow_io.core.python.experimental.io_dataset_ops import IODataset
from tensorflow_io.core.python.experimental.io_tensor import IOTensor
from tensorflow_io.core.python.experimental.io_layer import IOLayer

from tensorflow_io.core.python.api.experimental import ffmpeg
from tensorflow_io.core.python.api.experimental import image
Expand Down
1 change: 0 additions & 1 deletion tensorflow_io/core/python/api/v0/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# tensorflow_io.core.python.ops is implicitly imported (along with file system)
from tensorflow_io.core.python.ops.io_dataset import IODataset
from tensorflow_io.core.python.ops.io_tensor import IOTensor
from tensorflow_io.core.python.ops.io_layer import IOLayer

from tensorflow_io.core.python.api.v0 import genome
from tensorflow_io.core.python.api.v0 import image
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
from __future__ import print_function

import tensorflow as tf
from tensorflow_io.core.python.ops import text_io_layer_ops
from tensorflow_io.core.python.ops import kafka_io_layer_ops
from tensorflow_io.core.python.experimental import text_io_layer_ops
from tensorflow_io.core.python.experimental import kafka_io_layer_ops

class IOLayer(tf.keras.layers.Layer):
"""IOLayer
Expand Down
4 changes: 2 additions & 2 deletions tests/test_io_layer_eager.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def func(self):
f, filename = tempfile.mkstemp()
os.close(f)
self._filename = filename
return tfio.IOLayer.text(filename)
return tfio.experimental.IOLayer.text(filename)
def check(self, images, predictions):
f = tf.data.TextLineDataset(self._filename)
lines = [line for line in f]
Expand All @@ -91,7 +91,7 @@ class KafkaIOLayerHelper(object):
def func(self):
channel = "e{}e".format(time.time())
self._topic = "io-layer-test-"+channel
return tfio.IOLayer.kafka(self._topic)
return tfio.experimental.IOLayer.kafka(self._topic)
def check(self, images, predictions):
f = kafka_io.KafkaDataset(topics=[self._topic], group="test", eof=True)
lines = [line for line in f]
Expand Down