提交 f4901034 编写于 作者: H Haibo Huang 提交者: TensorFlower Gardener

Add back TensorflowInterface to libtpu

PiperOrigin-RevId: 564526383
上级 68cc4388
......@@ -187,6 +187,8 @@ void TF_TensorBitcastFrom(const TF_Tensor* from, TF_DataType type,
tsl::Set_TF_Status_from_Status(status, cc_status);
}
#endif // LIBTPU_EXCLUDE_C_API_IMPL
namespace tensorflow {
void TensorInterface::Release() {
......@@ -269,8 +271,6 @@ static void DeleteArray(void* data, size_t size, void* arg) {
delete[] reinterpret_cast<char*>(arg);
}
#endif // LIBTPU_EXCLUDE_C_API_IMPL
// Create an empty tensor of type 'dtype'. 'shape' can be arbitrary, but has to
// result in a zero-sized tensor.
static TF_Tensor* EmptyTensor(TF_DataType dtype,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册