[PJRT:C] Remove xla::Shape getter and related logic from PJRT C API
This changes removes `PJRT_Buffer_OnDeviceTrimmedShape` and related functionality, since passing around xla::Shapes is expensive and often includes more information than is necessary or even meaningful, and we now have more specific getters that should be used instead. This means that `PjRtBuffer::on_device_shape` and `PjRtBuffer:logical_on_device_shape` no longer work with the PjRtCApiClient. Instead, C++ callers should use the new more-specific getters: * `PjRtBuffer::element_type()` * `PjRtBuffer::dimensions()` * `PjRtBuffer::layout()` * `PjRtBuffer::has_dynamic_dimensions()` * `PjRtBuffer::is_dynamic_dimension()` * `PjRtBuffer::logical_dimensions()` These all have corresponding C APIs. PiperOrigin-RevId: 561148407
Showing
想要评论请 注册 或 登录