Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build the tensorflow origin code fast when I modify the code #65709

Closed
YuMJie opened this issue Apr 15, 2024 · 4 comments
Closed

How to build the tensorflow origin code fast when I modify the code #65709

YuMJie opened this issue Apr 15, 2024 · 4 comments
Assignees
Labels
stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues TF 2.16 type:build/install Build and install issues

Comments

@YuMJie
Copy link

YuMJie commented Apr 15, 2024

Issue type

Build/Install

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

source

TensorFlow version

2.16.1

Custom code

Yes

OS platform and distribution

Linux ubuntu 20.04

Mobile device

No response

Python version

3.9

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

I want to learn how TensorFlow is implemented and participate in the development of TensorFlow, but as far as I know, if you install it in the form of WHL through Build, you will spend a lot of time on Build, and there is any way to modify its code faster and verify that the modified code works

Standalone code to reproduce the issue

./configure  # answer prompts or use defaults

bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

./bazel-bin/tensorflow/tools/pip_package/build_pip_package /mnt  # create package

chown $HOST_PERMS /mnt/tensorflow-version-tags.whl

Relevant log output

No response

@google-ml-butler google-ml-butler bot added the type:build/install Build and install issues label Apr 15, 2024
@tilakrayal tilakrayal added TF 2.16 subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues labels Apr 15, 2024
@tilakrayal
Copy link
Contributor

@YuMJie,
While WHL files offer faster installation, building from source gives the direct access to the code. If you choose this way, consider using a tool like Bazel which streamlines the build process for large projects like TensorFlow.

Also try to create a virtual environment to isolate your development dependencies and avoid conflicts with other projects. This allows you to quickly switch between different TensorFlow versions or experiment with custom libraries.

If you build the tensorflow from source, you can modify TensorFlow's behavior for specific use cases, Integrate the TensorFlow with custom libraries or frameworks and You can step through the code line by line using a debugger to identify the root cause of problems. Thank you!

@tilakrayal tilakrayal added the stat:awaiting response Status - Awaiting response from author label Apr 16, 2024
Copy link

This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale This label marks the issue/pr stale - to be closed automatically if no activity label Apr 24, 2024
Copy link

github-actions bot commented May 1, 2024

This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.

@github-actions github-actions bot closed this as completed May 1, 2024
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues TF 2.16 type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

2 participants