Giter Club home page Giter Club logo

Comments (10)

weijianghn avatar weijianghn commented on May 3, 2024

same issue cl : Command line error D8022 : cannot open 'bazel-out/x64_windows-opt/bin/tensorflow/compiler/mlir/quantization/tensorflow/calibrator/_objs/calibration_statistics_collector_average_min_max/calibration_statistics_collector_average_min_max.obj.params'
TF Version 2.15.1

from tensorflow.

weijianghn avatar weijianghn commented on May 3, 2024

Seems that the latest version of TF doesn't support MSVC 2019/MSVC2022 compiler any more, please use CLANG to Build.

from tensorflow.

weijianghn avatar weijianghn commented on May 3, 2024

@Venkat6871 do you have any update on this issue? I had turned on Developer mode, it is not access right problem. I checked the BUILD file under calibrator folder, no problem of this file. and calibration_statistics_collector_average_min_max.obj.params file had existed, why cl.exe cannot open this file. it is format issue or not?
BR

from tensorflow.

Venkat6871 avatar Venkat6871 commented on May 3, 2024

Hi @ShifengJin ,
Sorry for the delay, Could you verify that the version of the C compiler used by Bazel are compatible with TensorFlow. Sometimes, mismatched compiler versions can lead to build errors. And if you are using an older version of the C++ compiler, consider upgrading to a newer version that may have better memory management. Please delete any existing build files and directories to ensure a fresh start.

Thank you!

from tensorflow.

weijianghn avatar weijianghn commented on May 3, 2024

Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
it should be latest version of MSVC

from tensorflow.

weijianghn avatar weijianghn commented on May 3, 2024

MSVC\14.39.33519

from tensorflow.

advnpzn avatar advnpzn commented on May 3, 2024

I'm also facing exact error and it is not actually bind to this particular calibration_statistics_collector_average_min_max.obj.params file, but it occurs for some other *.params file as well.

Faced this while trying to build the following target,
bazel build --config=opt --cxxopts="-std=c++17" //tensorflow:tensorflow_cc.dll

from tensorflow.

weijianghn avatar weijianghn commented on May 3, 2024

that's a problem why we cannot use c++17 to build, i used win-clang, it can be build successfully. actually, this file is existed on the bazel_out folder already, if you run cl.exe manually, this file can be opened. I suspected it related with build setup. but we had followed the instruction in release note. I also met another problem of smallvector like below:
tensorflow/dtensor/mlir/expansions/save_restore_spmd_expander.cc(812): error C2976: 'llvm::SmallVector': too few template arguments. I checked the code, find that for TFV2.15.0 they use llvm17.0.6. (I want to use the latest llvm with --override_repository=llvm-raw= failed also) and in save_restore_spmd_expander.cc:812
StatusOr<llvm::SmallVector> GetLayoutsFromAssignVariableOps
I am mad with TF c++ windows build, I gave up windows build , and works on linux environment now.

from tensorflow.

weijianghn avatar weijianghn commented on May 3, 2024

@Venkat6871 please don't wait the his response, we met the same issue, I can provided the info you wanted

from tensorflow.

advnpzn avatar advnpzn commented on May 3, 2024

As @weijianghn said, I do not get any errors when compiling in LLVM/clang 17.0.6. Getting it only in MSVC. But I'm facing other error because of missing symbols while trying to link the tensorflow.dll. The problem is I could solve missing symbols by simply adding TF_EXPORT in the respective source and recompile, but the missing symbol is from a dynamically generated proto file C++ header stub.

from tensorflow.

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.