Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for diff_quotient (0.13 sec)

  1. tensorflow/c/eager/gradient_checker.cc

        // (f(theta + eps) - f(theta - eps)) / (2 * eps).
        TF_RETURN_IF_ERROR(
            ops::Div(ctx, fDiff.get(), two_eps.get(), f_outputs, "diff_quotient"));
        AbstractTensorHandlePtr diff_quotient(f_outputs[0]);
    
        TF_Tensor* grad_tensor;
        TF_RETURN_IF_ERROR(GetValue(diff_quotient.get(), &grad_tensor));
        float grad_data[1];
        memcpy(&grad_data[0], TF_TensorData(grad_tensor),
               TF_TensorByteSize(grad_tensor));
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top