| 68 | REGISTER_UNARY_VARIANT_DECODE_FUNCTION(Tensor, "tensorflow::Tensor"); |
| 69 | |
| 70 | bool TensorBuffer::GetAllocatedBytes(size_t* out_bytes) const { |
| 71 | AllocationDescription allocation_description; |
| 72 | FillAllocationDescription(&allocation_description); |
| 73 | if (allocation_description.allocated_bytes() > 0) { |
| 74 | *out_bytes = allocation_description.allocated_bytes(); |
| 75 | return true; |
| 76 | } else { |
| 77 | return false; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | namespace { |
| 82 |
no outgoing calls
no test coverage detected