| 442 | } |
| 443 | |
| 444 | StatusOr<std::unique_ptr<ProgramShape>> Client::GetComputationShape( |
| 445 | const XlaComputation& computation) { |
| 446 | TF_ASSIGN_OR_RETURN(const auto& result, computation.GetProgramShape()); |
| 447 | return absl::make_unique<ProgramShape>(result); |
| 448 | } |
| 449 | |
| 450 | StatusOr<Shape> Client::GetShape(const GlobalData& data) { |
| 451 | GetShapeRequest request; |
no outgoing calls