- Sort Score
- Result 10 results
- Languages All
Results 21 - 25 of 25 for grad_inputs_ (0.8 sec)
-
tensorflow/c/eager/gradients.h
// public: // Status Compute(Context* ctx, // absl::Span<AbstractTensorHandle* const> grad_inputs, // absl::Span<AbstractTensorHandle*> grad_outputs) override { // grad_outputs[0] = grad_inputs[0]; // grad_outputs[1] = grad_inputs[0]; // grad_outputs[0]->Ref(); // grad_outputs[1]->Ref(); // return OkStatus(); // } // ~AddGradientFunction() override {}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 26 10:27:05 UTC 2022 - 6.9K bytes - Viewed (0) -
tensorflow/cc/gradients/grad_testutil.h
/// to the graph associated with 'scope'. Gradient outputs for each 'op' input /// are returned in 'grad_outputs'. Status CallGradFunction(const Scope& scope, const Operation& op, const std::vector<Output>& grad_inputs, std::vector<Output>* grad_outputs); } // namespace test } // namespace tensorflow
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 17 09:17:01 UTC 2020 - 1.4K bytes - Viewed (0) -
tensorflow/cc/gradients/README.md
2. Write the op gradient with the following naming scheme: ``` Status OpNameGrad(const Scope& scope, const Operation& op, const std::vector<Output>& grad_inputs, std::vector<Output>* grad_outputs) { ... return scope.status(); } REGISTER_GRADIENT_OP("OpName", OpNameGrad); ``` 3. Ops gradients are implemented by using the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Nov 29 19:12:55 UTC 2021 - 2K bytes - Viewed (0) -
tensorflow/cc/gradients/linalg_grad.cc
} Status EinsumGrad(const Scope& scope, const Operation& op, const std::vector<Output>& grad_inputs, std::vector<Output>* grad_outputs) { if (grad_inputs.size() != 1) { return errors::InvalidArgument("Expect 1 grad input."); } const Output& grad = grad_inputs[0]; std::string equation; TF_RETURN_IF_ERROR(GetNodeAttr(op.node()->attrs(), "equation", &equation));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 07 23:11:54 UTC 2022 - 20.4K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
TF_Output grad_inputs[1]; const float grad_inputs_val[] = {1.0, 1.0, 1.0, 1.0}; TF_Operation* grad_inputs_op = FloatConst2x2(graph_, s_, grad_inputs_val, "GradInputs"); grad_inputs[0] = TF_Output{grad_inputs_op, 0}; TF_AddGradientsWithPrefix(graph_, prefix, outputs, noutputs, inputs, ninputs, grad_inputs, s_, grad_outputs); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 96.9K bytes - Viewed (0)