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

Basic regression: Predict fuel efficiency Probelm #66057

Open
illaoiiiii opened this issue Apr 19, 2024 · 5 comments
Open

Basic regression: Predict fuel efficiency Probelm #66057

illaoiiiii opened this issue Apr 19, 2024 · 5 comments
Assignees
Labels
comp:model Model related issues stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author type:docs-bug Document issues

Comments

@illaoiiiii
Copy link

Issue type

Documentation Bug

Have you reproduced the bug with TensorFlow Nightly?

No

Source

source

TensorFlow version

2.15.0

Custom code

Yes

OS platform and distribution

google colab

Mobile device

No response

Python version

No response

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

In the tutorial beginner part Regression part ,the document have some problem shows like below
image
The code after this segment is not running. But i use ChatGPT to fix it .and the right code below
image
i think this is a easy problem and i hope official can fix it.

Standalone code to reproduce the issue

the url is below
https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/keras/regression.ipynb

Relevant log output

the bug log is below
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-16-87f1bea74834> in <cell line: 1>()
----> 1 normalizer.adapt(np.array(train_features))

11 frames
/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/constant_op.py in convert_to_eager_tensor(value, ctx, dtype)
    101       dtype = dtypes.as_dtype(dtype).as_datatype_enum
    102   ctx.ensure_initialized()
--> 103   return ops.EagerTensor(value, ctx.device_name, dtype)
    104 
    105 

ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type int).
@tilakrayal
Copy link
Contributor

@illaoiiiii,
As you mentioned the document regression.ipynb is failing with the tensorflow v2.15. But when I tried to execute the same official document with the latest tensorflow stable version 2.16, the code was executed without any issue/error. Kindly find the gist of it here. Thank you!

@tilakrayal tilakrayal added comp:model Model related issues stat:awaiting response Status - Awaiting response from author and removed type:bug Bug labels Apr 19, 2024
@illaoiiiii
Copy link
Author

@tilakrayal
i just obey the tutorial and i use the colab , colab automatically instal the v2.15,I am learning the TensorFlow framework,maybe is not a very serious bug or problem

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Status - Awaiting response from author label Apr 23, 2024
@tilakrayal
Copy link
Contributor

@illaoiiiii,
Yeah, It is not a bug and moreover the official docs will be upgraded to the latest stable version in upcoming days. As this issue is resolved in tensorflow v2.16, could you please feel free to move this issue to closed status. Thank you!

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

Hello :)

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Status - Awaiting response from author label Apr 24, 2024
@tilakrayal tilakrayal added the stat:awaiting response Status - Awaiting response from author label Apr 25, 2024
Copy link

github-actions bot commented May 2, 2024

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 May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:model Model related issues stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author type:docs-bug Document issues
Projects
None yet
Development

No branches or pull requests

3 participants