[TF/XLA] Remove the wrapping function XlaTensor::RefCountIsOne
PiperOrigin-RevId: 316510507 Change-Id: I7bbee7208348a1ae43b11671ecd95fe1e104f280
This commit is contained in:
parent
555be8943e
commit
49ba207bda
@ -27,10 +27,6 @@ namespace tensorflow {
|
|||||||
return xla_tensor;
|
return xla_tensor;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*static*/ bool XlaTensor::RefCountIsOne(const Tensor& tensor) {
|
|
||||||
return tensor.RefCountIsOne();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*static*/ se::DeviceMemoryBase XlaTensor::DeviceMemoryFromTensor(
|
/*static*/ se::DeviceMemoryBase XlaTensor::DeviceMemoryFromTensor(
|
||||||
const Tensor& tensor) {
|
const Tensor& tensor) {
|
||||||
const XlaTensor* xla_tensor = FromTensor(&tensor);
|
const XlaTensor* xla_tensor = FromTensor(&tensor);
|
||||||
|
@ -39,8 +39,6 @@ class XlaTensor {
|
|||||||
// fails.
|
// fails.
|
||||||
static XlaTensor* FromTensor(const Tensor* tensor);
|
static XlaTensor* FromTensor(const Tensor* tensor);
|
||||||
|
|
||||||
static bool RefCountIsOne(const Tensor& tensor);
|
|
||||||
|
|
||||||
// Create a DeviceMemoryBase from a Tensor. The Tensor can be an XlaTensor, in
|
// Create a DeviceMemoryBase from a Tensor. The Tensor can be an XlaTensor, in
|
||||||
// which case the returned value is shaped_buffer()->root_buffer(), or a
|
// which case the returned value is shaped_buffer()->root_buffer(), or a
|
||||||
// normal Tensor in which case the returned value is
|
// normal Tensor in which case the returned value is
|
||||||
|
Loading…
Reference in New Issue
Block a user