STT-tensorflow/tensorflow/python/lib/core
Allen Lavoie 253111e23b Stop holding custom devices in TensorHandles
My hope is to not change the custom device API much, just clean up the implementation.

Previously TensorHandles held Tensors which held the void* custom device tensor handle data. This required a bunch of special cases, mostly because the TensorHandle's device wasn't a physical device.

Now EagerOperations still accept custom device TensorHandles, but deal with them before execution (either by copying them off the custom device or by executing the operation on a custom device). This means the rest of the runtime can assume TensorHandles are on physical devices, and gives custom device tensor handles some freedom to evolve.

Rolling cl/350684489 forward with a fix for making packed tensors from custom device tensors. This requires one new custom device method to maintain the previous (accidental) functionality.

PiperOrigin-RevId: 351406348
Change-Id: I9c2ffd40a687b06434fab40e2db9e90129b9f2b7
2021-01-12 11:22:48 -08:00
..
__init__.py
bfloat16_test.py Add python/lib BUILD and refactor python/BUILD 2020-12-10 12:42:17 -08:00
bfloat16_wrapper.cc Merge JAX and TF bfloat16 numpy extensions. 2020-12-08 10:22:04 -08:00
bfloat16.cc Look for an existing bfloat16 type and prefer its use. 2020-12-09 13:38:04 -08:00
bfloat16.h Merge JAX and TF bfloat16 numpy extensions. 2020-12-08 10:22:04 -08:00
BUILD Add python/lib BUILD and refactor python/BUILD 2020-12-10 12:42:17 -08:00
ndarray_tensor_bridge.cc
ndarray_tensor_bridge.h
ndarray_tensor.cc 'convert_string' superfluous after cl/318933001 2020-08-18 10:39:55 -07:00
ndarray_tensor.h 'convert_string' superfluous after cl/318933001 2020-08-18 10:39:55 -07:00
numpy.cc
numpy.h
py_exception_registry.cc
py_exception_registry.h
py_func_wrapper.cc systemlibs: unbundle pybind11 2020-04-08 03:38:38 +08:00
py_func.cc Stop holding custom devices in TensorHandles 2021-01-12 11:22:48 -08:00
py_func.h
py_seq_tensor.cc - Allow creating complex and unsigned scalar tensor in TFRT. 2020-09-23 19:12:11 -07:00
py_seq_tensor.h
py_util.cc Implement fast deferred-decoding Python stack trace class. 2020-06-09 23:04:59 -07:00
py_util.h Implement fast deferred-decoding Python stack trace class. 2020-06-09 23:04:59 -07:00
pybind11_absl.h systemlibs: unbundle pybind11 2020-04-08 03:38:38 +08:00
pybind11_lib.h [NFC] Mark ThrowTypeError and ThrowValueError as [[noreturn]] 2020-09-02 13:12:23 -07:00
pybind11_proto.h systemlibs: unbundle pybind11 2020-04-08 03:38:38 +08:00
pybind11_status.h Release the GIL in file_io operations and reacquire it for error handling or Python specific operations. 2020-05-11 17:25:51 -07:00
safe_ptr.cc Split Safe_PyObjectPtr into its own header file (that doesn't depend on any other TensorFlow libraries.) 2020-08-28 10:57:56 -07:00
safe_ptr.h Split Safe_PyObjectPtr into its own header file (that doesn't depend on any other TensorFlow libraries.) 2020-08-28 10:57:56 -07:00
safe_pyobject_ptr.cc Split Safe_PyObjectPtr into its own header file (that doesn't depend on any other TensorFlow libraries.) 2020-08-28 10:57:56 -07:00
safe_pyobject_ptr.h Split Safe_PyObjectPtr into its own header file (that doesn't depend on any other TensorFlow libraries.) 2020-08-28 10:57:56 -07:00