Home
last modified time | relevance | path

Searched refs:ImmediateExecutionTensorHandle (Results 1 – 25 of 42) sorted by relevance

12

/external/tensorflow/tensorflow/core/common_runtime/eager/
Dcustom_device.h39 ImmediateExecutionTensorHandle* tensor,
40 ImmediateExecutionTensorHandle** result) = 0;
43 ImmediateExecutionTensorHandle* tensor, const string& target_device_name,
44 ImmediateExecutionTensorHandle** result) = 0;
47 ImmediateExecutionTensorHandle** retvals,
52 virtual Status Pack(absl::Span<ImmediateExecutionTensorHandle*> handles,
53 ImmediateExecutionTensorHandle** result) = 0;
72 class CustomDeviceTensorHandle : public ImmediateExecutionTensorHandle {
76 : ImmediateExecutionTensorHandle(kCustomDevice), in CustomDeviceTensorHandle()
101 ImmediateExecutionTensorHandle* Copy() override { in Copy()
Dcore.cc106 ImmediateExecutionTensorHandle* EagerContext::CopyTensorHandleToDevice( in CopyTensorHandleToDevice()
107 ImmediateExecutionTensorHandle* handle, const char* device_name, in CopyTensorHandleToDevice()
109 ImmediateExecutionTensorHandle* result = nullptr; in CopyTensorHandleToDevice()
155 ImmediateExecutionTensorHandle* EagerContext::CreateLocalHandle( in CreateLocalHandle()
162 ImmediateExecutionTensorHandle* EagerContext::CreateLocalHandleFromTFTensor( in CreateLocalHandleFromTFTensor()
175 ImmediateExecutionTensorHandle* EagerContext::TFTensorHandleFromInterface( in TFTensorHandleFromInterface()
176 ImmediateExecutionTensorHandle* handle) { in TFTensorHandleFromInterface()
200 for (ImmediateExecutionTensorHandle* handle : inputs_) { in Execute()
Deager_operation.h42 for (ImmediateExecutionTensorHandle* h : inputs_) { in ~EagerOperation()
88 Status SetInput(size_t index, ImmediateExecutionTensorHandle* input) override;
89 absl::Span<ImmediateExecutionTensorHandle* const> GetInputs() const override;
162 const absl::InlinedVector<ImmediateExecutionTensorHandle*, 4>& Inputs() in Inputs()
201 void AddTensorHandle(ImmediateExecutionTensorHandle* h);
211 Status MaybeInferSingleInputAttrs(ImmediateExecutionTensorHandle* handle);
227 absl::InlinedVector<ImmediateExecutionTensorHandle*, 4> inputs_;
265 ImmediateExecutionTensorHandle** slot = &inputs_[i]; in UpdateInput()
266 ImmediateExecutionTensorHandle* existing = *slot; in UpdateInput()
Dcustom_device_test.cc35 Status CopyTensorToDevice(ImmediateExecutionTensorHandle* tensor, in CopyTensorToDevice()
36 ImmediateExecutionTensorHandle** result) override { in CopyTensorToDevice()
42 ImmediateExecutionTensorHandle* tensor, in CopyTensorFromDevice()
44 ImmediateExecutionTensorHandle** result) override { in CopyTensorFromDevice()
50 ImmediateExecutionTensorHandle** retvals, in Execute()
55 Status Pack(absl::Span<ImmediateExecutionTensorHandle*> handles, in Pack()
56 ImmediateExecutionTensorHandle** result) override { in Pack()
Dcustom_device_op_handler.cc55 ImmediateExecutionTensorHandle** retvals, in Execute()
81 tensorflow::ImmediateExecutionTensorHandle* new_tesnor; in Execute()
115 for (const ImmediateExecutionTensorHandle* generic_input : op.GetInputs()) { in MaybePinToCustomDevice()
138 for (const ImmediateExecutionTensorHandle* generic_input : op.GetInputs()) { in MaybePinToCustomDevice()
Deager_operation.cc35 for (ImmediateExecutionTensorHandle* h : inputs_) { in Clear()
240 absl::Span<ImmediateExecutionTensorHandle* const> EagerOperation::GetInputs() in GetInputs()
244 reinterpret_cast<ImmediateExecutionTensorHandle* const*>(inputs_.data()), in GetInputs()
268 ImmediateExecutionTensorHandle* h = in AddInput()
269 down_cast<ImmediateExecutionTensorHandle*>(input); in AddInput()
286 ImmediateExecutionTensorHandle* h = in AddInputList()
287 down_cast<ImmediateExecutionTensorHandle*>(input); in AddInputList()
294 ImmediateExecutionTensorHandle* input) { in SetInput()
353 ImmediateExecutionTensorHandle* handle) { in MaybeInferSingleInputAttrs()
509 void EagerOperation::AddTensorHandle(ImmediateExecutionTensorHandle* h) { in AddTensorHandle()
Dcontext.h125 ImmediateExecutionTensorHandle* CreateLocalHandle(
128 ImmediateExecutionTensorHandle* CreateLocalHandleFromTFTensor(
130 ImmediateExecutionTensorHandle* CopyTensorHandleToDevice(
131 ImmediateExecutionTensorHandle* handle, const char* device_name,
139 ImmediateExecutionTensorHandle* TFTensorHandleFromInterface(
140 ImmediateExecutionTensorHandle* handle) override;
Dplacement_utils.h39 absl::Span<ImmediateExecutionTensorHandle* const> args,
Dtensor_handle.h56 class TensorHandle : public ImmediateExecutionTensorHandle {
136 ImmediateExecutionTensorHandle* Copy() override;
394 class TensorHandleInterface : public ImmediateExecutionTensorHandle {
Dcustom_device_op_handler.h37 ImmediateExecutionTensorHandle** retvals, int* num_retvals);
/external/tensorflow/tensorflow/c/experimental/saved_model/core/ops/
Dvariable_ops.cc62 if (!tensorflow::isa<ImmediateExecutionTensorHandle>( in CreateUninitializedResourceVariable()
66 handle->reset(reinterpret_cast<ImmediateExecutionTensorHandle*>( in CreateUninitializedResourceVariable()
72 ImmediateExecutionTensorHandle* variable_handle, in AssignVariable()
73 DataType dtype, ImmediateExecutionTensorHandle* value) { in AssignVariable()
86 ImmediateExecutionTensorHandle* variable_handle, in ReadVariable()
98 if (!tensorflow::isa<ImmediateExecutionTensorHandle>(owned_value.get())) { in ReadVariable()
102 reinterpret_cast<ImmediateExecutionTensorHandle*>(owned_value.release())); in ReadVariable()
107 ImmediateExecutionTensorHandle* handle) { in DestroyResource()
Dvariable_ops.h43 ImmediateExecutionTensorHandle* variable_handle,
44 DataType dtype, ImmediateExecutionTensorHandle* value);
50 ImmediateExecutionTensorHandle* variable_handle,
57 ImmediateExecutionTensorHandle* handle);
Drestore_ops.cc101 if (!tensorflow::isa<ImmediateExecutionTensorHandle>( in SingleRestore()
105 out->reset(reinterpret_cast<ImmediateExecutionTensorHandle*>( in SingleRestore()
/external/tensorflow/tensorflow/c/eager/
Dimmediate_execution_tensor_handle.h34 class ImmediateExecutionTensorHandle : public AbstractTensorHandle {
55 virtual ImmediateExecutionTensorHandle* Copy() = 0;
71 explicit ImmediateExecutionTensorHandle(AbstractTensorHandleKind kind) in ImmediateExecutionTensorHandle() function
73 ~ImmediateExecutionTensorHandle() override {} in ~ImmediateExecutionTensorHandle()
78 void operator()(ImmediateExecutionTensorHandle* p) const { in operator()
87 std::unique_ptr<ImmediateExecutionTensorHandle,
Dimmediate_execution_context.h91 virtual ImmediateExecutionTensorHandle* CreateLocalHandle(
94 virtual ImmediateExecutionTensorHandle* CopyTensorHandleToDevice(
95 ImmediateExecutionTensorHandle* handle, const char* device_name,
198 virtual ImmediateExecutionTensorHandle* CreateLocalHandleFromTFTensor(
202 virtual ImmediateExecutionTensorHandle* TFTensorHandleFromInterface(
203 ImmediateExecutionTensorHandle* handle) = 0;
Dtfe_tensorhandle_internal.h31 DEFINE_CONVERSION_FUNCTIONS(tensorflow::ImmediateExecutionTensorHandle,
33 DEFINE_CONVERSION_FUNCTIONS(tensorflow::ImmediateExecutionTensorHandle*,
Dc_api_unified_experimental_eager.cc40 using tensorflow::ImmediateExecutionTensorHandle;
62 auto handle = dyn_cast<ImmediateExecutionTensorHandle>(unwrap(at)); in TF_AbstractTensorGetEagerTensor()
Dimmediate_execution_operation.h45 virtual absl::Span<ImmediateExecutionTensorHandle* const> GetInputs()
48 ImmediateExecutionTensorHandle* input) = 0;
/external/tensorflow/tensorflow/c/experimental/saved_model/core/revived_types/
Dpartially_revived_objects.cc82 ImmediateExecutionTensorHandle** handle) { in TensorHandleFromNode()
285 std::vector<ImmediateExecutionTensorHandle*> captures; in CreateConcreteFunction()
288 ImmediateExecutionTensorHandle* capture_handle; in CreateConcreteFunction()
307 std::vector<ImmediateExecutionTensorHandle*> captures; in CreateSignatureDefFunction()
310 ImmediateExecutionTensorHandle* capture_handle; in CreateSignatureDefFunction()
417 if (!tensorflow::isa<ImmediateExecutionTensorHandle>( in CreateAllResourceHandles()
422 reinterpret_cast<ImmediateExecutionTensorHandle*>( in CreateAllResourceHandles()
Dflat_tensor_function.cc50 std::vector<ImmediateExecutionTensorHandle*> captures, in Create()
55 for (ImmediateExecutionTensorHandle* capture : captures) { in Create()
Dtf_concrete_function_revival_state.h43 std::vector<ImmediateExecutionTensorHandle*> captures;
Dtf_signature_def_function_revival_state.h50 std::vector<ImmediateExecutionTensorHandle*> captures;
Dconstant.cc38 ImmediateExecutionTensorHandle* handle = ctx->CreateLocalHandle(tensor); in Create()
Dtensorhandle_convertible.h33 ImmediateExecutionTensorHandle* handle() { return handle_.get(); } in handle()
/external/tensorflow/tensorflow/python/framework/experimental/
Dunified_api.cc60 using tensorflow::ImmediateExecutionTensorHandle;
231 if (!isa<ImmediateExecutionTensorHandle>(self)) { in PYBIND11_MODULE()
240 wrap(dyn_cast<ImmediateExecutionTensorHandle>(self)); in PYBIND11_MODULE()

12