Allow creating tensors from numpy arrays, and other various constants.
authorAkshay Modi <nareshmodi@google.com>
Mon, 9 Apr 2018 18:45:13 +0000 (11:45 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Mon, 9 Apr 2018 18:47:25 +0000 (11:47 -0700)
commite4d1a92e7cf9cdd44b84dc1dba1411301f6f04ab
treee7d1300116bd933665c00025e93df8ab82bb051f
parent568f05c7937c327941a0f301be08cb842c88a851
Allow creating tensors from numpy arrays, and other various constants.

Allow type-inference from a different input tensor, similar to args_to_matching_eager.

- Update TFE_Py_TensorShapeSlice to take tuples.
- Update int values to allow int/long in py2

PiperOrigin-RevId: 192160407
tensorflow/python/eager/pywrap_tensor.cc
tensorflow/python/eager/pywrap_tensor.h
tensorflow/python/eager/pywrap_tfe.h
tensorflow/python/eager/pywrap_tfe_src.cc
tensorflow/python/eager/tensor_test.py
tensorflow/python/framework/ops.py