Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for gradients (0.29 sec)

  1. tensorflow/c/eager/gradients.h

    #include "tensorflow/c/eager/tape.h"
    #include "tensorflow/core/common_runtime/eager/attr_builder.h"
    
    namespace tensorflow {
    namespace gradients {
    
    // =============== Experimental C++ API for computing gradients ===============
    
    // Sample gradient function:
    //
    // class AddGradientFunction : public GradientFunction {
    //  public:
    //   Status Compute(Context* ctx,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradients.cc

      // Looks up the ID of a Gradient.
      int64_t TensorId(AbstractTensorHandle* tensor) const override;
    
      // Converts a Gradient to a TapeTensor.
      TapeTensor TapeTensorFromGradient(AbstractTensorHandle* g) const override;
    
      void MarkAsResult(AbstractTensorHandle* gradient) const override;
    
      void DeleteGradient(AbstractTensorHandle* gradient) const override;
    
     private:
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. tensorflow/c/eager/gradients_test.cc

    #include "tensorflow/c/eager/gradients_internal.h"
    #include "tensorflow/c/eager/unified_api_testutil.h"
    #include "tensorflow/c/experimental/gradients/array_grad.h"
    #include "tensorflow/c/experimental/gradients/math_grad.h"
    #include "tensorflow/c/experimental/gradients/not_differentiable.h"
    #include "tensorflow/c/experimental/gradients/tape/tape_context.h"
    #include "tensorflow/c/experimental/ops/array_ops.h"
    #include "tensorflow/c/experimental/ops/math_ops.h"
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradient_checker_test.cc

    #include "tensorflow/c/tf_status_helper.h"
    #include "tensorflow/c/tf_tensor.h"
    #include "tensorflow/core/platform/tensor_float_32_utils.h"
    #include "tensorflow/core/platform/test.h"
    
    namespace tensorflow {
    namespace gradients {
    namespace internal {
    namespace {
    
    using tensorflow::TF_StatusPtr;
    
    void CompareNumericalAndManualGradients(
        Model model, AbstractContext* ctx,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. tensorflow/c/eager/gradient_checker.h

     * hold the numerical gradient data at the end of the function.
     */
    absl::Status CalcNumericalGrad(AbstractContext* ctx, Model forward,
                                   absl::Span<AbstractTensorHandle* const> inputs,
                                   int input_index, bool use_function,
                                   AbstractTensorHandle** numerical_grad);
    
    }  // namespace gradients
    }  // namespace tensorflow
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. tensorflow/c/eager/gradients_internal.h

    ==============================================================================*/
    
    #ifndef TENSORFLOW_C_EAGER_GRADIENTS_INTERNAL_H_
    #define TENSORFLOW_C_EAGER_GRADIENTS_INTERNAL_H_
    
    #include "tensorflow/c/eager/gradients.h"
    
    namespace tensorflow {
    namespace gradients {
    namespace internal {
    
    // Helper functions which delegate to `AbstractOperation`, update
    // the state of the ForwardOperation and call the tape as appropriate.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. tensorflow/c/eager/BUILD

            ":c_api_unified_internal",
            "//tensorflow/c/experimental/gradients/tape:tape_operation",
            "//tensorflow/core/lib/llvm_rtti",
            "//tensorflow/core/platform:errors",
        ],
    )
    
    cc_library(
        name = "gradients_internal",
        srcs = [
            "gradients.cc",
        ],
        hdrs = [
            "gradients.h",
            "gradients_internal.h",
        ],
        visibility = [
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Apr 11 23:52:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  8. tensorflow/c/eager/gradient_checker.cc

    #include "absl/types/span.h"
    #include "tensorflow/c/eager/abstract_tensor_handle.h"
    #include "tensorflow/c/experimental/ops/math_ops.h"
    #include "tensorflow/c/tf_tensor.h"
    
    namespace tensorflow {
    namespace gradients {
    
    using namespace std;
    
    // ================== Helper functions =================
    
    // Fills data with values [start,end) with given step size.
    void Range(vector<int32_t>* data, int32_t start, int32_t end,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_test.cc

      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s_)) << TF_Message(s_);
    }
    
    TEST_F(CApiGradientsTest, GradientsPrefix_2ndGradientsMatchingNodeOf1st) {
      BuildGraphAndAddGradientsWithPrefixes("gradients", "gradients/MatMul");
      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s_)) << TF_Message(s_);
    }
    
    TEST_F(CApiGradientsTest, GradientsPrefix_1stGradientsMatchingNodeOf2nd) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  10. tensorflow/BUILD

            "//tensorflow/c/eager:tfe_context_internal",
            "//tensorflow/c/eager:tfe_op_internal",
            "//tensorflow/c/eager:tfe_tensorhandle_internal",
            "//tensorflow/c/experimental/gradients",
            "//tensorflow/c/experimental/gradients/tape",
            "//tensorflow/c/experimental/next_pluggable_device:c_api",
            "//tensorflow/c/experimental/ops",
            "//tensorflow/c:c_api_experimental",
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 16 05:28:35 UTC 2024
    - 53.5K bytes
    - Viewed (0)
Back to top