- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for new_retvals (0.15 sec)
-
tensorflow/c/experimental/ops/gen/cpp/golden/testing_ops.cc.golden
TF_RETURN_IF_ERROR(op_ptr->Reset("Neg", raw_device_name)); TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name)); TF_RETURN_IF_ERROR(op_ptr->AddInput(x)); int num_retvals = 1; return op_ptr->Execute(absl::MakeSpan(y, 1), &num_retvals); } // Op: MatMul() // Summary: // // Description:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 16 19:04:03 UTC 2023 - 6.5K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/ops/variable_ops.cc
strlen(ResourceHandle::ANONYMOUS_NAME))); AbstractTensorHandle* var_handle = nullptr; int num_retvals = 1; TF_RETURN_IF_ERROR(varhandle_op->Execute( absl::MakeSpan(&var_handle, num_retvals), &num_retvals)); AbstractTensorHandlePtr owned_var_handle(var_handle); if (!tensorflow::isa<ImmediateExecutionTensorHandle>( owned_var_handle.get())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 11:28:19 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/op_implementation_renderer.cc
ArgView output_arg = op_.OnlyOutput(); Statement("int num_retvals = $0.size()", output_arg.VariableName()); Statement("return " + Call(op_.VariableName(), "Execute", {output_arg.VariableName(), "&num_retvals"})); } void OpImplementationRenderer::RenderExecutionSingleOutput() { ArgView output_arg = op_.OnlyOutput(); Statement("int num_retvals = 1");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 3.7K bytes - Viewed (0) -
tensorflow/c/experimental/ops/array_ops.cc
TF_RETURN_IF_ERROR(op_ptr->Reset("Identity", raw_device_name)); TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name)); TF_RETURN_IF_ERROR(op_ptr->AddInput(input)); int num_retvals = 1; return op_ptr->Execute(absl::MakeSpan(output, 1), &num_retvals); } // Op: IdentityN() // Summary: Returns a list of tensors with the same shapes and contents as the // input // // Description: // tensors. //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 10 19:11:36 UTC 2022 - 6.7K bytes - Viewed (0) -
tensorflow/c/experimental/ops/nn_ops.cc
TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name)); TF_RETURN_IF_ERROR(op_ptr->AddInput(features)); TF_RETURN_IF_ERROR(op_ptr->AddInput(labels)); int num_retvals = 2; AbstractTensorHandle* temp_outputs[2]; Status status = op_ptr->Execute(temp_outputs, &num_retvals); *loss = temp_outputs[0]; *backprop = temp_outputs[1]; return status; } // Op: ReluGrad()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 10 19:11:36 UTC 2022 - 5.9K bytes - Viewed (0) -
tensorflow/c/experimental/ops/resource_variable_ops.cc
TF_RETURN_IF_ERROR(op_ptr->SetAttrShape("shape", shape)); TF_RETURN_IF_ERROR( op_ptr->SetAttrStringList("allowed_devices", allowed_devices)); int num_retvals = 1; return op_ptr->Execute(absl::MakeSpan(resource, 1), &num_retvals); } // Op: ReadVariableOp() // Summary: Reads the value of a variable. // // Description: // The tensor returned by this operation is immutable. //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 10 19:11:36 UTC 2022 - 5.1K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/revived_types/restored_resource.cc
ImmediateOpPtr function_op; TF_RETURN_IF_ERROR(func->MakeCallOp({}, &function_op)); AbstractTensorHandle* dummy_output = nullptr; int num_retvals = 1; TF_RETURN_IF_ERROR(function_op->Execute( absl::MakeSpan(&dummy_output, num_retvals), &num_retvals)); AbstractTensorHandlePtr owned_dummy_output(dummy_output); return Status(); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 14 19:16:58 UTC 2023 - 3.1K bytes - Viewed (0) -
tensorflow/c/experimental/ops/io_ops.cc
TF_RETURN_IF_ERROR(op_ptr->AddInput(shape_and_slices)); TF_RETURN_IF_ERROR( op_ptr->SetAttrTypeList("dtypes", dtypes.data(), dtypes.length())); int num_retvals = tensors.size(); return op_ptr->Execute(tensors, &num_retvals); } // Op: SaveV2() // Summary: Saves tensors in V2 checkpoint format. // // Description: // By default, saves the named tensors in full. If the caller wishes to save
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 17 17:54:34 UTC 2022 - 3.9K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/ops/restore_ops.cc
TF_RETURN_IF_ERROR(restore_op->AddInput(shapes_and_slices_handle.get())); AbstractTensorHandle* restored_handle = nullptr; int num_retvals = 1; TF_RETURN_IF_ERROR(restore_op->Execute( absl::MakeSpan(&restored_handle, num_retvals), &num_retvals)); AbstractTensorHandlePtr owned_restored_handle(restored_handle); if (!tensorflow::isa<ImmediateExecutionTensorHandle>( owned_restored_handle.get())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 4.5K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/tape/tape_operation.cc
AbstractOperation* TapeOperation::GetBackingOperation() { return parent_op_; } Status TapeOperation::Execute(absl::Span<AbstractTensorHandle*> retvals, int* num_retvals) { TF_RETURN_IF_ERROR(parent_op_->Execute(retvals, num_retvals)); for (int i = 0; i < *num_retvals; i++) { // TODO(srbs): Manage refcount of ForwardOperation's inputs/outputs. forward_op_.outputs.push_back(retvals[i]); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 06:16:45 UTC 2024 - 9K bytes - Viewed (0)