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

Feature Request: tf.contrib.image.interpolate_spline partially known TensorShape #21136

Closed
meichen91 opened this issue Jul 25, 2018 · 3 comments
Assignees

Comments

@meichen91
Copy link

Please go to Stack Overflow for help and support:

https://stackoverflow.com/questions/tagged/tensorflow

If you open a GitHub issue, here is our policy:

  1. It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).
  2. The form below must be filled out.
  3. It shouldn't be a TensorBoard issue. Those go here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.


System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS 10.13.5
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
  • TensorFlow installed from (source or binary): pip
  • TensorFlow version (use command below): 1.8.0
  • Python version: 3.6
  • 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

You can collect some of this information using our environment capture script:

https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh

You can obtain the TensorFlow version with

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the problem

Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.
When using tf.contrib.image.interpolate_spline(), the input cannot have partially known shape, e.g., a placeholder. I wonder if new features to allow inputs with partially known shape can be added. The following is a code snippet to demonstrate the problem. Thank you for helping!

Source code / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

import tensorflow as tf

X = tf.placeholder(tf.float32, [None])
Y = tf.constant([4,5,6], tf.float32)
x2 = tf.constant([2.5,2.3,2.9], tf.float32)

x = tf.reshape([[X]], [1, -1, 1])
y = tf.reshape([[Y]], [1, -1, 1])
x2 = tf.reshape([[x2]], [1, -1, 1])
y2 = tf.contrib.image.interpolate_spline(x, y, x2, order=1)

with tf.Session() as session:
result = session.run(y2, feed_dict={X: [1, 2, 3]})
print(result[0,:,0])

@reedwm
Copy link
Member

reedwm commented Jul 26, 2018

/CC @rmlarsen, @davidBelanger, can either of you work on this?

@tensorflowbutler
Copy link
Member

Nagging Assignee @rmlarsen: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@davidBelanger
Copy link

davidBelanger commented Aug 14, 2018 via email

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

No branches or pull requests

5 participants