- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for addInputs (0.18 sec)
-
tensorflow/c/experimental/ops/gen/cpp/golden/testing_ops.cc.golden
TF_RETURN_IF_ERROR(op_ptr->Reset("AccumulatorApplyGradient", raw_device_name)); TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name)); TF_RETURN_IF_ERROR(op_ptr->AddInput(handle)); TF_RETURN_IF_ERROR(op_ptr->AddInput(local_step)); TF_RETURN_IF_ERROR(op_ptr->AddInput(gradient)); int num_retvals = 0; std::vector<AbstractTensorHandle*> dummy_outputs; return op_ptr->Execute(absl::MakeSpan(dummy_outputs), &num_retvals); }
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/ops/nn_ops.cc
TF_RETURN_IF_ERROR( op_ptr->Reset("SparseSoftmaxCrossEntropyWithLogits", raw_device_name)); 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];
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/io_ops.cc
TF_RETURN_IF_ERROR(op_ptr->Reset("RestoreV2", raw_device_name)); TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name)); TF_RETURN_IF_ERROR(op_ptr->AddInput(prefix)); TF_RETURN_IF_ERROR(op_ptr->AddInput(tensor_names)); 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();
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/variable_ops.cc
TF_RETURN_IF_ERROR(assign_op->Reset("AssignVariableOp", nullptr)); TF_RETURN_IF_ERROR(assign_op->SetAttrType("dtype", dtype)); TF_RETURN_IF_ERROR(assign_op->AddInput(variable_handle)); TF_RETURN_IF_ERROR(assign_op->AddInput(value)); int num_retvals = 0; TF_RETURN_IF_ERROR(assign_op->Execute({}, &num_retvals)); return Status(); } Status ReadVariable(ImmediateExecutionContext* ctx,
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/array_ops.cc
TF_RETURN_IF_ERROR(op_ptr->Reset("ExpandDims", raw_device_name)); TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name)); TF_RETURN_IF_ERROR(op_ptr->AddInput(input)); TF_RETURN_IF_ERROR(op_ptr->AddInput(dim)); int num_retvals = 1; return op_ptr->Execute(absl::MakeSpan(output, 1), &num_retvals); } // Op: OnesLike()
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/resource_variable_ops.cc
TF_RETURN_IF_ERROR(op_ptr->Reset("AssignVariableOp", raw_device_name)); TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name)); TF_RETURN_IF_ERROR(op_ptr->AddInput(resource)); TF_RETURN_IF_ERROR(op_ptr->AddInput(value)); TF_RETURN_IF_ERROR(op_ptr->SetAttrBool("validate_shape", validate_shape)); int num_retvals = 0; std::vector<AbstractTensorHandle*> dummy_outputs;
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/ops/gen/cpp/views/arg_view.cc
ArgView::ArgView(ArgSpec arg) : arg_(arg) {} string ArgView::VariableName() const { return arg_.name(); } string ArgView::SetterMethod() const { if (IsList()) { return "AddInputList"; } else { return "AddInput"; } } std::vector<string> ArgView::SetterArgs() const { return {VariableName()}; } bool ArgView::IsList() const { return arg_.arg_type().is_list(); } int ArgView::Position() const { return arg_.position(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 03 07:02:00 UTC 2024 - 1.4K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/tape/tape_operation.cc
return parent_op_->DeviceName(); } Status TapeOperation::SetDeviceName(const char* name) { return parent_op_->SetDeviceName(name); } Status TapeOperation::AddInput(AbstractTensorHandle* input) { TF_RETURN_IF_ERROR(parent_op_->AddInput(input)); forward_op_.inputs.push_back(input); return absl::OkStatus(); } Status TapeOperation::AddInputList( absl::Span<AbstractTensorHandle* const> inputs) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 06:16:45 UTC 2024 - 9K bytes - Viewed (0) -
tensorflow/c/eager/gradients_internal.h
// Records the op name in the `ForwardOperation`. Status Reset(AbstractOperation*, const char* op, const char* raw_device_name, ForwardOperation*); // Records the inputs in the `ForwardOperation`. Status AddInput(AbstractOperation*, AbstractTensorHandle*, ForwardOperation*); Status AddInputList(AbstractOperation*, absl::Span<AbstractTensorHandle* const> inputs, ForwardOperation*);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Oct 24 11:27:35 UTC 2021 - 4.2K bytes - Viewed (0) -
tensorflow/c/eager/unified_api_testutil.cc
} AbstractOperationPtr fn_op(ctx->CreateOperation()); TF_RETURN_IF_ERROR(fn_op->Reset(fn_name, /*raw_device_name=*/nullptr)); for (auto input : inputs) { TF_RETURN_IF_ERROR(fn_op->AddInput(input)); } int retvals = outputs.size() - null_indices.size(); std::vector<AbstractTensorHandle*> fn_outputs(retvals); TF_RETURN_IF_ERROR(fn_op->Execute(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 13:57:45 UTC 2024 - 5.7K bytes - Viewed (0)