- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for DiagGrad (0.07 sec)
-
tensorflow/cc/gradients/array_grad.cc
} REGISTER_GRADIENT_OP("Fill", FillGrad); Status DiagGrad(const Scope& scope, const Operation& op, const std::vector<Output>& grad_inputs, std::vector<Output>* grad_outputs) { grad_outputs->push_back(DiagPart(scope, grad_inputs[0])); return scope.status(); } REGISTER_GRADIENT_OP("Diag", DiagGrad); Status DiagPartGrad(const Scope& scope, const Operation& op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 10 23:33:32 UTC 2023 - 31.7K bytes - Viewed (0) -
tensorflow/cc/gradients/array_grad_test.cc
auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape)); TensorShape y_shape({2, 5, 3}); auto y = Fill(scope_, {2, 5, 3}, x); RunTest(x, x_shape, y, y_shape); } TEST_F(ArrayGradTest, DiagGrad) { TensorShape x_shape({5, 2}); auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape)); auto y = Diag(scope_, x); TensorShape y_shape({5, 2, 5, 2}); RunTest(x, x_shape, y, y_shape); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 10 23:33:32 UTC 2023 - 19.3K bytes - Viewed (0)