- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for sum_output (1.05 seconds)
-
tensorflow/c/eager/gradient_checker.cc
sum_dims.reset(sum_dims_raw); } // Reduce sum the output on all dimensions. TF_RETURN_IF_ERROR(ops::Sum(ctx, model_out.get(), sum_dims.get(), &outputs[0], /*keep_dims=*/false, "sum_output")); return absl::OkStatus(); } // ========================= End Helper Functions============================== absl::Status CalcNumericalGrad(AbstractContext* ctx, Model forward,
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 7.3K bytes - Click Count (0) -
tensorflow/c/eager/c_api_unified_experimental.cc
void TF_DeleteOutputList(TF_OutputList* o) { delete unwrap(o); } void TF_OutputListSetNumOutputs(TF_OutputList* o, int num_outputs, TF_Status* s) { unwrap(o)->expected_num_outputs = num_outputs; unwrap(o)->outputs.clear(); unwrap(o)->outputs.resize(num_outputs); } int TF_OutputListNumOutputs(TF_OutputList* o) { return unwrap(o)->outputs.size(); }
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 9K bytes - Click Count (0) -
tensorflow/c/eager/gradients.cc
absl::StrCat("ZerosLike", ToId(t)).c_str())); } TF_RETURN_IF_ERROR(op->AddInput(t)); int num_outputs = 1; std::vector<AbstractTensorHandle*> outputs(num_outputs); TF_RETURN_IF_ERROR( op->Execute(absl::Span<AbstractTensorHandle*>(outputs), &num_outputs)); *result = outputs[0]; return absl::OkStatus(); } } // namespace absl::Status GradientRegistry::Register(Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Tue Feb 24 06:18:31 GMT 2026 - 19.6K bytes - Click Count (0) -
tensorflow/c/eager/custom_device_testutil.cc
} std::vector<TFE_TensorHandle*> op_outputs(*num_outputs); TFE_Execute(op, op_outputs.data(), num_outputs, s); TFE_DeleteOp(op); if (TF_GetCode(s) != TF_OK) return; std::vector<TFE_TensorHandle*> unwrapped_outputs; unwrapped_outputs.reserve(op_outputs.size()); for (auto* handle : op_outputs) { unwrapped_outputs.push_back(handle); } for (int i = 0; i < *num_outputs; ++i) {
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Dec 20 23:30:21 GMT 2025 - 8.4K bytes - Click Count (0) -
tensorflow/c/eager/c_api_unified_experimental_graph.cc
shape.dims())); } int num_outputs = 1; std::vector<AbstractTensorHandle*> outputs(num_outputs); TF_RETURN_IF_ERROR(operation->Execute( absl::Span<AbstractTensorHandle*>(outputs), &num_outputs)); if (num_outputs != 1) { return errors::Internal("Expected 1 output but found ", num_outputs); } auto* t = dyn_cast<GraphTensor>(outputs[0]); if (!t) {
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat May 31 07:13:41 GMT 2025 - 15.7K bytes - Click Count (0) -
tensorflow/c/c_api.cc
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 04 05:55:32 GMT 2025 - 102.4K bytes - Click Count (0) -
tensorflow/c/c_api_function.cc
// nodes must have a single output. if (node->num_outputs() != 1) { return InvalidArgument( "When `num_opers` is set to -1, nodes referenced in `inputs` " "must have a single output. Node ", node->name(), " has ", node->num_outputs(), " outputs. Encountered while creating function '", fn_name, "'"); } }Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 16:27:48 GMT 2024 - 13.7K bytes - Click Count (0) -
tensorflow/c/c_api_experimental.cc
status->status = c.Run(op_reg_data->shape_inference_fn); if (!status->status.ok()) return; // Set output_shapes. TF_ShapeAndTypeList* output_shapes_result = TF_NewShapeAndTypeList(c.num_outputs()); for (int i = 0; i < c.num_outputs(); ++i) { ShapeHandle shape_handle = c.output(i); TF_ShapeAndType& shape = output_shapes_result->items[i]; shape.num_dims = c.Rank(shape_handle);
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 04 05:55:32 GMT 2025 - 29.4K bytes - Click Count (0) -
tensorflow/c/eager/c_api_unified_experimental.h
TF_OutputList* TF_NewOutputList(); void TF_DeleteOutputList(TF_OutputList* o); // Prepare tracing to the expected number of output for an operation. void TF_OutputListSetNumOutputs(TF_OutputList* o, int num_outputs, TF_Status*); // Return the number of outputs in the list. int TF_OutputListNumOutputs(TF_OutputList* o); // Return the `i`th output in the list. TF_AbstractTensor* TF_OutputListGet(TF_OutputList* o, int i);
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sun Oct 24 11:27:00 GMT 2021 - 7K bytes - Click Count (0) -
tensorflow/c/eager/c_api_unified_experimental_test.cc
add_output2 = TF_OutputListGet(add_outputs, 0); TF_DeleteOutputList(add_outputs); } // 3rd Output will be Matrix Multiplication of add_output1 and add_output2 TF_AbstractTensor* mm_output; { // Build an abstract operation, inputs and output. auto* mm_op = TF_NewAbstractOp(graph_ctx); TF_AbstractOpSetOpType(mm_op, "MatMul", s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 39.1K bytes - Click Count (0)