Skip to content

Don't support avgpooling op on Windows ? #5517

Closed

Description

@apollo-time

Environment info

Operating System: Windows 10, 64bit, Visual Studio 2015

Issue

I try compile tensorflow label image sample on windows 10 64bit with Visual Studio 2015.
I got error 'AvgPool' op kernel not found message while loading tensorflow_inception_graph.pb graph.
I check tf_core_kernels.cmake and found follow line.

if(WIN32)
  file(GLOB_RECURSE tf_core_kernels_windows_exclude_srcs
      # not working on windows yet
      "${tensorflow_source_dir}/tensorflow/core/kernels/depthwise_conv_op.cc"  # Cannot find symbol: tensorflow::LaunchConv2DOp<struct Eigen::ThreadPoolDevice, double>::launch(...).
      "${tensorflow_source_dir}/tensorflow/core/kernels/fact_op.cc"
      "${tensorflow_source_dir}/tensorflow/core/kernels/meta_support.*"
      "${tensorflow_source_dir}/tensorflow/core/kernels/*quantiz*.h"
      "${tensorflow_source_dir}/tensorflow/core/kernels/*quantiz*.cc"
      "${tensorflow_source_dir}/tensorflow/core/kernels/svd*.cc"
      "${tensorflow_source_dir}/tensorflow/core/kernels/avgpooling_op.*"
  )
  list(REMOVE_ITEM tf_core_kernels_srcs ${tf_core_kernels_windows_exclude_srcs})
endif(WIN32)

Is this mean don't support above ops on windows?
How can I running graph that using these ops?

Activity

  1. mrry commented on Nov 10, 2016

    @mrry
    Contributor

    At least in the initial version, avgpooling_op.cc did not compile with MSVC. I'm not at a computer right now, but could you try commenting out the line

          "${tensorflow_source_dir}/tensorflow/core/kernels/avgpooling_op.*"
    

    from the tf_core_kernels_windows_exclude_srcs definition you pasted above, and report the error (if any)?

  2. added a commit that references this issue on Nov 10, 2016
    8eadfad
  3. apollo-time commented on Nov 11, 2016

    @apollo-time
    Author

    I had try the add avgpooling_op.cc into tf_core_kernels project manually and build it.
    But I got the last error
    `
    1>------ Build started: Project: tf_core_kernels, Configuration: Debug x64 ------

    ...

    1>tf_core_kernels.dir\Debug\tf_core_kernels.lib : fatal error LNK1248: image size (1017EA054) exceeds maximum allowable size (FFFFFFFF)
    `
    How can I build it?

  4. mrry commented on Nov 11, 2016

    @mrry
    Contributor

    The best bet is to build it in theRelease or RelWithDebInfo configurations, which are the only two we support. (Debug has some compatibility issues with the behavior of STL iterators in MSVC... and apparently some image-size problems too!)

    I've just sent out PR #5532, which adds the CPU version of avgpooling_op.cc to the Windows build, and the tests are passing.

  5. added a commit that references this issue on Nov 14, 2016
    c254deb
  6. added a commit that references this issue on Nov 14, 2016
    cb2ef58
  7. added a commit that references this issue on Nov 15, 2016
    7651d38
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