Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for dtheta_approx (0.15 sec)

  1. tensorflow/c/eager/gradient_checker.cc

               TF_TensorByteSize(grad_tensor));
        TF_DeleteTensor(grad_tensor);
        dtheta_approx[i] = grad_data[0];
      }
    
      // Populate *numerical_grad with the data from dtheta_approx.
      TF_RETURN_IF_ERROR(TestTensorHandleWithDims<float, TF_FLOAT>(
          ctx, dtheta_approx.data(), theta_dims.data(), num_dims, numerical_grad));
      TF_DeleteTensor(theta_tensor);
      return absl::OkStatus();
    }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradient_checker.h

    #include "absl/types/span.h"
    #include "tensorflow/c/eager/abstract_tensor_handle.h"
    #include "tensorflow/c/eager/unified_api_testutil.h"
    
    namespace tensorflow {
    namespace gradients {
    
    /* 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.
     *
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top