Git Product home page Git Product logo

Comments (5)

yongtang avatar yongtang commented on August 9, 2024

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.

suphoff avatar suphoff commented on August 9, 2024

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.

yongtang avatar yongtang commented on August 9, 2024

@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.

suphoff avatar suphoff commented on August 9, 2024

@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.

yongtang avatar yongtang commented on August 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.