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

Eager: tf.linalg.inv(tf.transpose(mat)) has undefined shape in function with tfe.defun #16913

Closed
traveller59 opened this issue Feb 10, 2018 · 1 comment
Assignees
Labels
stat:awaiting tensorflower Status - Awaiting response from tensorflower

Comments

@traveller59
Copy link

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow):No
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Win10
  • TensorFlow installed from (source or binary):binary
  • TensorFlow version (use command below):1.6.0dev20180126(GPU)
  • Python version: 3.6.3
  • Bazel version (if compiling from source): N/A
  • GCC/Compiler version (if compiling from source): N/A
  • CUDA/cuDNN version: N/A
  • GPU model and memory: N/A
  • Exact command to reproduce: N/A

Source code / logs

  • No problem in graph mode
import tensorflow as tf
import numpy as np
import tensorflow.contrib.eager as tfe
tfe.enable_eager_execution()
@tfe.defun
def test(rect):
    rect_T = tf.transpose(rect)
    print(rect_T.shape)
    print(tf.linalg.inv(rect_T).shape)
    print(tf.linalg.inv(rect).shape)
    print(tf.linalg.inv(tf.transpose(rect)).shape)
rect_tf = tf.constant(np.random.uniform(size=[4, 4]))
test(rect_tf)

Output:

(4, 4)
(?, ?)
(4, 4)
(?, ?)
@asimshankar asimshankar self-assigned this Feb 13, 2018
@asimshankar asimshankar added the stat:awaiting tensorflower Status - Awaiting response from tensorflower label Feb 13, 2018
@asimshankar
Copy link
Contributor

Thanks for the report. This is indeed a bug, will send out a fix.

@gunan gunan closed this as completed in 80e100b Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting tensorflower Status - Awaiting response from tensorflower
Projects
None yet
Development

No branches or pull requests

2 participants