You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Gradient.md 296 B

123456789101112131415
  1. # Chapter. Gradient
  2. ### Register custom gradient function
  3. TF.NET is extensible which can be added custom gradient function.
  4. ```csharp
  5. // define gradient function
  6. ops.RegisterGradientFunction("ConcatV2", (oper, out_grads) =>
  7. {
  8. var grad = grads[0];
  9. return new Tensor[]{ };
  10. });
  11. ```