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

[BUG] Packed constants in TF not handled properly #95

Closed
weimingzha0 opened this issue Dec 14, 2020 · 1 comment · Fixed by #94
Closed

[BUG] Packed constants in TF not handled properly #95

weimingzha0 opened this issue Dec 14, 2020 · 1 comment · Fixed by #94
Assignees

Comments

@weimingzha0
Copy link
Collaborator

Describe the bug
for values like [a, a,...], TF saved it as a single {a}.
TF parser doesn't handle it properly.

To Reproduce

Command lines to reproduce the bug.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@weimingzha0 weimingzha0 linked a pull request Dec 14, 2020 that will close this issue
@youbeny
Copy link
Collaborator

youbeny commented Dec 14, 2020

If shape is set, the value is reshaped to match. Scalars are expanded to fill the shape:

print(tf.Session().run(tf.constant(0, shape=(2,3))))
>>>[[0 0 0]
    [0 0 0]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants