- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for OkStatus (0.04 seconds)
-
tensorflow/c/eager/gradient_checker.cc
TF_DeleteTensor(model_out_tensor); // If the output is a scalar, then return the scalar output if (num_dims_out == 0) { outputs[0] = model_out.release(); return absl::OkStatus(); } // Else, reduce sum the output to get a scalar // Will sum all dimensions, so get a Tensor containing [0,...,num_dims_out-1]. AbstractTensorHandlePtr sum_dims; {
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/gradients_test.cc
CHECK_EQ(errors::OK, s.code()) << s.message(); } }; absl::Status RegisterGradients(GradientRegistry* registry) { TF_RETURN_IF_ERROR(RegisterNotDifferentiable(registry, "CheckNumerics")); return absl::OkStatus(); } TEST_P(CppGradients, TestSetAttrString) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); AbstractContextPtr ctx; {
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 7K bytes - Click Count (0) -
tensorflow/c/eager/graph_function.cc
func_record_(new FunctionRecord(std::move(fdef), {}, true)) {} GraphFunction::~GraphFunction() {} absl::Status GraphFunction::GetFunctionDef(const FunctionDef **fdef) { *fdef = &(func_record_->fdef()); return absl::OkStatus(); } } // namespace graph } // namespace tracing
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 1.3K bytes - Click Count (0) -
tensorflow/c/eager/abstract_tensor_handle.cc
} absl::Status AbstractTensorHandle::TensorHandleStatus() const { // Tensor handles in current runtime don't carry error info and this method // should always return OK status. return absl::OkStatus(); }Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 1.4K bytes - Click Count (0) -
tensorflow/c/eager/immediate_execution_tensor_handle.cc
// marked mutable. const_cast<ImmediateExecutionTensorHandle*>(this)->Resolve(&status)); if (!status.ok()) { return status; } summary = resolved->SummarizeValue(); return absl::OkStatus(); }Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:24:07 GMT 2024 - 2.1K bytes - Click Count (0) -
tensorflow/c/eager/gradients.h
// grad_outputs[0] = grad_inputs[0]; // grad_outputs[1] = grad_inputs[0]; // grad_outputs[0]->Ref(); // grad_outputs[1]->Ref(); // return OkStatus(); // } // ~AddGradientFunction() override {} // }; // // GradientFunction* AddRegisterer(const ForwardOperation& op) { // // More complex gradient functions can use inputs/attrs etc. from the
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 6.9K bytes - Click Count (0) -
tensorflow/c/eager/c_api_unified_experimental.cc
} absl::Status SetDefaultTracingEngine(const char* name) { auto entry = GetFactories().find(name); if (entry != GetFactories().end()) { default_factory = GetFactories().find(name)->second; return absl::OkStatus(); } string msg = absl::StrCat( "No tracing engine factory has been registered with the key '", name, "' (available: "); // Ensure deterministic (sorted) order in the error message
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 9K bytes - Click Count (0)