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

tfm.nlp.layers.RelativePositionEmbedding #70520

Open
Leo-Lifeblood opened this issue Jun 27, 2024 · 1 comment
Open

tfm.nlp.layers.RelativePositionEmbedding #70520

Leo-Lifeblood opened this issue Jun 27, 2024 · 1 comment
Assignees
Labels
comp:apis Highlevel API related issues stat:awaiting response Status - Awaiting response from author TF 2.16 type:bug Bug

Comments

@Leo-Lifeblood
Copy link

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

No

Source

source

TensorFlow version

2.16.1

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?

Screenshot 2024-06-27 at 17 49 59

Standalone code to reproduce the issue

import tensorflow as tf
import tensorflow_models as tfm

input_tensor = tf.random.normal((32, 87, 128))


position_emb = tfm.nlp.layers.RelativePositionEmbedding(hidden_size=128)


output_tensor = position_emb(input_tensor)
 

print(output_tensor.shape)

Relevant log output

No response

@google-ml-butler google-ml-butler bot added the type:bug Bug label Jun 27, 2024
@sushreebarsa sushreebarsa added comp:apis Highlevel API related issues TF 2.16 labels Jun 28, 2024
@sushreebarsa
Copy link
Contributor

@Leo-Lifeblood I was able to replicate the output reported here, could you please share the error you are encountering ?
Thank you!

@sushreebarsa sushreebarsa added the stat:awaiting response Status - Awaiting response from author label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:apis Highlevel API related issues stat:awaiting response Status - Awaiting response from author TF 2.16 type:bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants