File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
tensorflow/compiler/xla/pjrt Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -505,6 +505,12 @@ class PjRtClient {
505505 virtual StatusOr<std::unique_ptr<PjRtBuffer>> CreateUninitializedBuffer (
506506 const Shape& shape, PjRtDevice* device) = 0;
507507
508+ // Creates buffer that carries an error future without allocating memory.
509+ virtual StatusOr<std::unique_ptr<PjRtBuffer>> CreateErrorBuffer (
510+ Status error, const Shape& shape, PjRtDevice* device) {
511+ return Unimplemented (" CreateErrorBuffer not supported." );
512+ }
513+
508514 // A client may want to create a buffer, and hand the buffer to other PjRt
509515 // methods, before the data to store in the buffer is available to the client.
510516 // This is supported using CreateBuffersForAsyncHostToDevice, which returns an
You can’t perform that action at this time.
0 commit comments