Fix typo: BufferFromPyal -> BufferFromPyval.
PiperOrigin-RevId: 321346825 Change-Id: Ica5e622513464f42c2e44d65bd63efe9a97d585e
This commit is contained in:
parent
bc9a9a35bc
commit
b7cbbb454d
@ -83,7 +83,7 @@ PyClient::GetDefaultDeviceAssignment1D(int num_replicas) {
|
||||
return result;
|
||||
}
|
||||
|
||||
StatusOr<std::unique_ptr<PyBuffer>> PyClient::BufferFromPyal(
|
||||
StatusOr<std::unique_ptr<PyBuffer>> PyClient::BufferFromPyval(
|
||||
const pybind11::object& argument, Device* device, bool force_copy,
|
||||
PjRtBuffer::HostBufferSemantics host_buffer_semantics) {
|
||||
if (device == nullptr) {
|
||||
|
@ -120,7 +120,7 @@ class PyClient : public std::enable_shared_from_this<PyClient> {
|
||||
return pjrt_client_->client()->CreateHostToDeviceChannelHandle();
|
||||
}
|
||||
|
||||
StatusOr<std::unique_ptr<PyBuffer>> BufferFromPyal(
|
||||
StatusOr<std::unique_ptr<PyBuffer>> BufferFromPyval(
|
||||
const pybind11::object& argument, Device* device, bool force_copy,
|
||||
PjRtBuffer::HostBufferSemantics host_buffer_semantics);
|
||||
|
||||
|
@ -539,7 +539,7 @@ PYBIND11_MODULE(xla_extension, m) {
|
||||
&PyClient::CreateDeviceToHostChannelHandle)
|
||||
.def("create_host_to_device_channel_handle",
|
||||
&PyClient::CreateHostToDeviceChannelHandle)
|
||||
.def("buffer_from_pyval", &PyClient::BufferFromPyal, py::arg("argument"),
|
||||
.def("buffer_from_pyval", &PyClient::BufferFromPyval, py::arg("argument"),
|
||||
py::arg("device") = nullptr, py::arg("force_copy") = false,
|
||||
py::arg("host_buffer_semantics") =
|
||||
PjRtBuffer::HostBufferSemantics::kZeroCopy)
|
||||
|
Loading…
x
Reference in New Issue
Block a user