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
1 change: 0 additions & 1 deletion tensorflow_io/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ cc_binary(
"//tensorflow_io/core:elasticsearch_ops",
"//tensorflow_io/core:genome_ops",
"//tensorflow_io/core:optimization",
"//tensorflow_io/core:oss_ops",
"//tensorflow_io/core/kernels/gsmemcachedfs:gs_memcached_file_system",
],
}) + select({
Expand Down
16 changes: 0 additions & 16 deletions tensorflow_io/core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -707,22 +707,6 @@ cc_library(
alwayslink = 1,
)

cc_library(
name = "oss_ops",
srcs = [
"kernels/oss/oss_file_system.cc",
"kernels/oss/oss_file_system.h",
],
copts = tf_io_copts(),
linkstatic = True,
deps = [
"@aliyun_oss_c_sdk",
"@local_config_tf//:libtensorflow_framework",
"@local_config_tf//:tf_header_lib",
],
alwayslink = 1,
)

cc_library(
name = "sql_ops",
srcs = [
Expand Down
1 change: 1 addition & 0 deletions tensorflow_io/core/filesystems/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ cc_library(
"//tensorflow_io/core/filesystems/az",
"//tensorflow_io/core/filesystems/hdfs",
"//tensorflow_io/core/filesystems/http",
"//tensorflow_io/core/filesystems/oss",
"//tensorflow_io/core/filesystems/s3",
],
alwayslink = 1,
Expand Down
3 changes: 2 additions & 1 deletion tensorflow_io/core/filesystems/filesystem_plugins.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ limitations under the License.
TFIO_PLUGIN_EXPORT void TF_InitPlugin(TF_FilesystemPluginInfo* info) {
info->plugin_memory_allocate = tensorflow::io::plugin_memory_allocate;
info->plugin_memory_free = tensorflow::io::plugin_memory_free;
info->num_schemes = 7;
info->num_schemes = 8;
info->ops = static_cast<TF_FilesystemPluginOps*>(
tensorflow::io::plugin_memory_allocate(info->num_schemes *
sizeof(info->ops[0])));
Expand All @@ -40,4 +40,5 @@ TFIO_PLUGIN_EXPORT void TF_InitPlugin(TF_FilesystemPluginInfo* info) {
tensorflow::io::hdfs::ProvideFilesystemSupportFor(&info->ops[4], "hdfs");
tensorflow::io::hdfs::ProvideFilesystemSupportFor(&info->ops[5], "viewfs");
tensorflow::io::hdfs::ProvideFilesystemSupportFor(&info->ops[6], "har");
tensorflow::io::oss::ProvideFilesystemSupportFor(&info->ops[7], "oss");
}
6 changes: 6 additions & 0 deletions tensorflow_io/core/filesystems/filesystem_plugins.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ void ProvideFilesystemSupportFor(TF_FilesystemPluginOps* ops, const char* uri);

} // namespace s3

namespace oss {

void ProvideFilesystemSupportFor(TF_FilesystemPluginOps* ops, const char* uri);

} // namespace oss

} // namespace io
} // namespace tensorflow

Expand Down
24 changes: 24 additions & 0 deletions tensorflow_io/core/filesystems/oss/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
licenses(["notice"]) # Apache 2.0

package(default_visibility = ["//visibility:public"])

load(
"//:tools/build/tensorflow_io.bzl",
"tf_io_copts",
)

cc_library(
name = "oss",
srcs = [
"oss_filesystem.cc",
"oss_filesystem.h",
],
copts = tf_io_copts(),
linkstatic = True,
deps = [
"//tensorflow_io/core/filesystems:filesystem_plugins_header",
"@aliyun_oss_c_sdk",
"@local_config_tf//:tf_header_lib",
],
alwayslink = 1,
)
Loading