tf_1.8_xla_doc
|
#include <user_computation.h>
Public Member Functions | |
StatusOr< ComputationDataHandle > | AddParameterInstruction (const ParameterRequest ¶meter_request) |
Enqueue a parameter-retrieving instruction onto this UserComputation . More... | |
VersionedComputationHandle | GetVersionedHandle () const |
Lock mutex and call GetVersionedHandleInternal() More... | |
StatusOr< std::unique_ptr< HloComputation > > | BuildHloComputation (VersionedComputationHandle::Version version, HloComputationResolver hlo_resolver, const DebugOptions &debug_options, bool include_unreachable_instructions=true) const |
Build a HLO computation from the UserComputation More... | |
Private Member Functions | |
VersionedComputationHandle | GetVersionedHandleInternal () const EXCLUSIVE_LOCKS_REQUIRED(mutex_) |
Get the VersionedComputationHandle recorded in UserComputation object. More... | |
Google Docs:
A UserComputation is the built-up computation that users create via the XLA Service interface.
The XLA service adds instructions to a user computation via this interface. The state of the computation is stored as a SessionComputation proto which holds a record of all operation-building requests received by the XLA service.
UserComputations are lowered to HloComputations which are passed to the high level compiler interface.
StatusOr< ComputationDataHandle > xla::UserComputation::AddParameterInstruction | ( | const ParameterRequest & | parameter_request | ) |
Enqueue a parameter-retrieving instruction onto this UserComputation
.
parameter_requests
(map<parameter_number, OperationRequest>
).ComputationDataHandle
object which will use the next_handle_value_
as value.OperationRequest
object in member session_computation_
's requests map by using the value of ComputationDataHandle
as a key.ComputationDataHandle
object created in step 2 in the map mentioned in step 1.ComputationDataHandle
which represents the index of OperationRequest
object. StatusOr< std::unique_ptr< HloComputation > > xla::UserComputation::BuildHloComputation | ( | VersionedComputationHandle::Version | version, |
HloComputationResolver | hlo_resolver, | ||
const DebugOptions & | debug_options, | ||
bool | include_unreachable_instructions = true |
||
) | const |
Build a HLO computation from the UserComputation
xla::anonymous_namespace{user_computation.cc}::ComputationLowerer::Lower()
to build a HloComputation
.VersionedComputationHandle xla::UserComputation::GetVersionedHandle | ( | ) | const |
Lock mutex and call GetVersionedHandleInternal()
|
private |
Get the VersionedComputationHandle recorded in UserComputation object.
handle_to_return_