Comments (5)
I think we could create a different namespace, or anom namespace if possible. The tensorflow-io is always complied with tensorflow, so even if there is a collision we will be able to find out quickly I believe.
from io.
I am a bit more worried about tensorflow changes causing collisions with current/past versions of tensorflow-io then the other way round.
from io.
@suphoff At the moment we pin to a specific version of tensorflow for each of the past releases. For example, in the past we pin to 1.12.0 in tensorflow-io 0.1.0-0.3.0. For the upcoming tensorflow-io 0.4.0 we plan to pin to 1.13.0.
The reason is that while our python code has largely been forward compatible, there are still some C++ changes in tensorflow from time to time to make it backward/forward incompatible. One example is #54 (comment)
Since tensorlow-io tends to release faster than tensorflow (at least in the near future), I would be less worried about the namespace collision for now. But if there is anything we could do to make it future compatible, e.g., have a namespace tensorflow_io
or anonymous namespace, it would be great as well.
from io.
@yongtang : I am mechanically changing the name space of my prototype for #109
from:
namespace tensorflow {
// ....
} // tensorflow
to
namespace tensorflow_io {
using namespace ::tensorflow;
// ....
} // tensorflow_io
As sources are distributed over several files anonymous namespaces are not really an option.
The prototype should be ready in a few days and can then serve as an example. (Good or bad)
from io.
With the recently updates, most of the C++ files should have the correct namespace:
namespace tensorflow {
namespace io {
namespace { // if applicable use anonymous namespace
} // namespace
} // namespace io
} // namespace tensorflow
Think this issue could be closed.
from io.
Related Issues (20)
- Tensorflow 2.15 support HOT 3
- Missing ARM64 wheels for v0.35.0 on PyPI HOT 5
- [v0.35.0] Build Failure on "Analysis of target '@bazel_tools//platforms:windows' failed"
- S3 filesystem pure virtual method called; terminate called without an active exception HOT 12
- DICOM `scale=preserve` not working as intended and performance consideration
- Is the windows support dropped? HOT 1
- Inefficient Write+Copy+Delete pattern when writing to S3. HOT 1
- S3 read throughput slow down after hit prefix limit HOT 1
- extra not provided
- Tensorflow version-pinning should be reflected in setup.py. HOT 1
- Bug in Reading Compressed String Column in Parquet Dataset HOT 2
- Unable to use tensorflow_io.audio.resample on Mac M1
- tensorflow-io-gcs-filesystem==0.36.0 not available via pip HOT 1
- Missing files for Python 3.12 HOT 2
- Tensorflow 2.16 support HOT 1
- Grail bazel toolchain changed/missing
- S3 Express One Zone support
- The wheel in tensorflow-io 0.37.0 is not compatible with Python 3.12 HOT 1
- Please Make TFIO work on Mac M1, I need to read mp3 files!!!!
- Can not build `tensorflow-io 0.37.0` from source on Apple silicon.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from io.