Skip to content

Tensorflow profiler java bindings #617

Description

@JugadK

Tensorflow Java Version 1.1.0

In python you can enable the tensor profiler by doing

[tf.profiler.experimental.start](https://www.tensorflow.org/api_docs/python/tf/profiler/experimental/start)

Does anything similar exist in the java bindings ? I see ProfileOptions as a class but it seems to not be used anywhere. Tracing seems to able to be turned on in the ConfigProto/RunOptions configuration though im not sure if I make it write to disk

Activity

  1. DiazBejaranoD commented on Sep 25, 2025

    @DiazBejaranoD

    @JugadK I'm curious about this. Do you wish to enable this profiler because you are experiencing some kind of memory leak using the java bindings?

  2. Craigacp commented on Sep 26, 2025

    @Craigacp
    Collaborator

    ProfilerSession isn't exposed as part of TF's C API which is what TF-Java uses. It's probably possible to wrap the C++ header directly and expose it, but that's a lot of work and we don't have the bandwidth for that at the moment.

  3. JugadK commented on Sep 29, 2025

    @JugadK
    Author

    @DiazBejaranoD We are trying to upgrade Tensorflow from 0.4.1 to 1.1.0 and we are seeing higher cpu utilization, was hoping the profiler could help me debug it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions