- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 83 for dy (0.02 sec)
-
tensorflow/c/eager/gradient_checker.h
/* Returns numerical grad inside `dtheta_approx` given `forward` model and * parameter specified by `input_index`. * * I.e. if y = <output of the forward model> and w = inputs[input_index], * this will calculate dy/dw numerically. * * `use_function` indicates whether to use graph mode(true) or eager(false). * * `numerical_grad` is the pointer to the AbstractTensorHandle* which will
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Dec 11 02:34:32 UTC 2020 - 1.8K bytes - Viewed (0) -
src/image/gif/writer.go
e.buf[0] = sImageDescriptor byteorder.LePutUint16(e.buf[1:3], uint16(b.Min.X)) byteorder.LePutUint16(e.buf[3:5], uint16(b.Min.Y)) byteorder.LePutUint16(e.buf[5:7], uint16(b.Dx())) byteorder.LePutUint16(e.buf[7:9], uint16(b.Dy())) e.write(e.buf[:9]) // To determine whether or not this frame's palette is the same as the // global palette, we can check a couple things. First, do they actually
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:38:09 UTC 2024 - 11.9K bytes - Viewed (0) -
tensorflow/cc/gradients/nn_grad.cc
// dp/dx = [dp0/dx0 ... dp0/dxn-1 ] // [ ... ... ] // [dpm-1/dx0 ... dpm-1/dxn-1] // dL/dx = dp/dx * dL/dy // // Using alternative formula: // dL/dx = dL/dy * y - sum(dL/dy * y) * y // = (dL/dy - sum(dL/dy * y)) * y auto y = op.output(0); auto dyy = Mul(scope, grad_inputs[0], y); auto sum = Sum(scope, dyy, /*axis=*/-1, Sum::KeepDims(true));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 27 23:34:33 UTC 2022 - 24.5K bytes - Viewed (0) -
src/image/gif/reader.go
func uninterlace(m *image.Paletted) { var nPix []uint8 dx := m.Bounds().Dx() dy := m.Bounds().Dy() nPix = make([]uint8, dx*dy) offset := 0 // steps through the input by sequential scan lines. for _, pass := range interlacing { nOffset := pass.start * dx // steps through the output as defined by pass. for y := pass.start; y < dy; y += pass.skip { copy(nPix[nOffset:nOffset+dx], m.Pix[offset:offset+dx]) offset += dx
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:15:54 UTC 2024 - 17.5K bytes - Viewed (0) -
src/crypto/internal/edwards25519/edwards25519.go
return nil, errors.New("edwards25519: invalid point encoding length") } // -x² + y² = 1 + dx²y² // x² + dx²y² = x²(dy² + 1) = y² - 1 // x² = (y² - 1) / (dy² + 1) // u = y² - 1 y2 := new(field.Element).Square(y) u := new(field.Element).Subtract(y2, feOne) // v = dy² + 1 vv := new(field.Element).Multiply(y2, d) vv = vv.Add(vv, feOne) // x = +√(u/v)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 13 19:21:54 UTC 2023 - 10.3K bytes - Viewed (0) -
tensorflow/c/experimental/ops/math_ops.h
const char* raw_device_name = nullptr); // Computes the gradient for the sqrt of `x` wrt its input. Status SqrtGrad(AbstractContext* ctx, AbstractTensorHandle* const y, AbstractTensorHandle* const dy, AbstractTensorHandle** z, const char* name = nullptr, const char* raw_device_name = nullptr); // Computes natural logarithm of (1 + x) element-wise.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 10 19:11:36 UTC 2022 - 4.4K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/math_grad.cc
// TODO(vnvo2409): Add shape broadcasting /* Given upstream grad U and a Div op: Z = X/Y, the gradients are: * * dX = U / Y * dY = -U*X / Y^2 = (X/Y) * -U / Y = -U*Z / Y * */ AbstractTensorHandle* upstream_grad = grad_outputs[0]; AbstractTensorHandle* Y = forward_inputs_[1]; AbstractTensorHandle* Z = forward_outputs_[0];
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 13:53:47 UTC 2024 - 15.2K bytes - Viewed (0) -
src/image/png/writer_test.go
if !b0.Size().Eq(b1.Size()) { return fmt.Errorf("dimensions differ: %v vs %v", b0, b1) } dx := b1.Min.X - b0.Min.X dy := b1.Min.Y - b0.Min.Y for y := b0.Min.Y; y < b0.Max.Y; y++ { for x := b0.Min.X; x < b0.Max.X; x++ { c0 := m0.At(x, y) c1 := m1.At(x+dx, y+dy) r0, g0, b0, a0 := c0.RGBA() r1, g1, b1, a1 := c1.RGBA() if r0 != r1 || g0 != g1 || b0 != b1 || a0 != a1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 14 08:14:05 UTC 2022 - 8.9K bytes - Viewed (0) -
src/image/gif/writer_test.go
LoopCount: 5, } for i, f := range frames { g, err := readGIF(f) if err != nil { t.Fatal(f, err) } m := g.Image[0] if m.Bounds().Dx() != width || m.Bounds().Dy() != height { t.Fatalf("frame %d had unexpected bounds: got %v, want width/height = %d/%d", i, m.Bounds(), width, height) } g0.Image[i] = m }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 19K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td
// Training OPs // ============================================================================= // `grad = dy * y * (1 - y)`, where `y = sigmoid(x)` def LegalizeSigmoidGrad : Pat<(TF_SigmoidGradOp $y, $dy), (TFL_MulOp $dy, (TFL_MulOp $y, (TFL_SubOp (Arith_ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "1.0f">), $y, TFL_AF_None),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 28.5K bytes - Viewed (0)