Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
Tested:
PiperOrigin-RevId: 658690257
Change-Id: I1e05cd21598623a70f0b548869d2d410dd44c810
  • Loading branch information
Reverb Team authored and copybara-github committed Aug 2, 2024
1 parent 98e1da6 commit f8c19ac
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions reverb/cc/conversions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ absl::Status PyObjectToString(PyObject *obj, const char **ptr, Py_ssize_t *len,
absl::StrCat("Unsupported object type ", obj->ob_type->tp_name));
}

return tensorflow::OkStatus();
return absl::OkStatus();
}

// Iterate over the string array 'array', extract the ptr and len of each string
Expand All @@ -110,7 +110,7 @@ absl::Status PyBytesArrayMap(PyArrayObject *array, F f) {
Py_XDECREF(ptr_owner);
PyArray_ITER_NEXT(iter.get());
}
return tensorflow::OkStatus();
return absl::OkStatus();
}

absl::Status StringTensorToPyArray(const tensorflow::Tensor &tensor,
Expand Down Expand Up @@ -140,7 +140,7 @@ absl::Status StringTensorToPyArray(const tensorflow::Tensor &tensor,
PyArray_ITER_NEXT(iter.get());
}

return tensorflow::OkStatus();
return absl::OkStatus();
}

absl::Status GetPyDescrFromDataType(tensorflow::DataType dtype,
Expand Down Expand Up @@ -174,7 +174,7 @@ absl::Status GetPyDescrFromDataType(tensorflow::DataType dtype,
"Unsupported tf type: ", tensorflow::DataType_Name(dtype)));
}

return tensorflow::OkStatus();
return absl::OkStatus();
}

absl::Status GetPyDescrFromTensor(const tensorflow::Tensor &tensor,
Expand Down Expand Up @@ -223,7 +223,7 @@ absl::Status GetTensorDtypeFromPyArray(PyArrayObject *array,
return absl::InternalError(absl::StrCat("Unsupported numpy type: ",
NumpyTypeName(pyarray_type)));
}
return tensorflow::OkStatus();
return absl::OkStatus();
}

inline absl::Status VerifyDtypeIsSupported(const tensorflow::DataType &dtype) {
Expand All @@ -233,7 +233,7 @@ inline absl::Status VerifyDtypeIsSupported(const tensorflow::DataType &dtype) {
"ndarrays that maps to tensors with dtype ",
tensorflow::DataType_Name(dtype), " are not yet supported"));
}
return tensorflow::OkStatus();
return absl::OkStatus();
}

absl::Status NdArrayToTensor(PyObject *ndarray,
Expand Down Expand Up @@ -281,7 +281,7 @@ absl::Status NdArrayToTensor(PyObject *ndarray,
absl::StrCat("Unexpected dtype: ", tensorflow::DataTypeString(dtype)));
}

return tensorflow::OkStatus();
return absl::OkStatus();
}

absl::Status TensorToNdArray(const tensorflow::Tensor &tensor,
Expand Down Expand Up @@ -318,7 +318,7 @@ absl::Status TensorToNdArray(const tensorflow::Tensor &tensor,
}

*out_ndarray = safe_out_ndarray.release();
return tensorflow::OkStatus();
return absl::OkStatus();
}

} // namespace pybind
Expand Down

0 comments on commit f8c19ac

Please sign in to comment.