aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/client/xla_client/xla_computation.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/client/xla_client/xla_computation.h')
-rw-r--r--tensorflow/compiler/xla/client/xla_client/xla_computation.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/client/xla_client/xla_computation.h b/tensorflow/compiler/xla/client/xla_client/xla_computation.h
index 5b89747fdd..2a3c695266 100644
--- a/tensorflow/compiler/xla/client/xla_client/xla_computation.h
+++ b/tensorflow/compiler/xla/client/xla_client/xla_computation.h
@@ -29,6 +29,8 @@ namespace xla {
// TODO(b/74197823): Replace xla::Computation with this one.
class XlaComputation {
public:
+ XlaComputation() : unique_id_(-1) {}
+
XlaComputation(const XlaComputation&) = delete;
XlaComputation& operator=(const XlaComputation&) = delete;
@@ -38,7 +40,8 @@ class XlaComputation {
// Returns the "program shape" (parameter and return shapes) for this
// computation.
- const ProgramShape& GetProgramShape() const;
+ StatusOr<ProgramShape> GetProgramShape() const;
+
const HloModuleProto& proto() const { return proto_; }
private: