- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 14 for gradients_1 (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tensorflow/c/c_api_test.cc
BuildGraphAndAddGradientsWithPrefixes("scope/gradients", "scope/gradients_1"); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); } TEST_F(CApiGradientsTest, GradientsPrefix_TwoGradientsInDifferentScopes) { BuildGraphAndAddGradientsWithPrefixes("scope/gradients", "scope_1/gradients"); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); }
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Jan 07 04:56:09 GMT 2026 - 97.3K bytes - Click Count (0) -
tensorflow/c/c_api.h
// size `nx`. // // Gradient nodes are automatically named under the "gradients/" prefix. To // guarantee name uniqueness, subsequent calls to the same graph will // append an incremental tag to the prefix: "gradients_1/", "gradients_2/", ... // See TF_AddGradientsWithPrefix, which provides a means to specify a custom // name prefix for operations added to a graph to compute the gradients. //
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Oct 26 21:08:15 GMT 2023 - 82.3K bytes - Click Count (0) -
tensorflow/c/eager/gradients.h
#include "tensorflow/c/eager/abstract_tensor_handle.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,Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 6.9K bytes - Click Count (0) -
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"
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 7K bytes - Click Count (0) -
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,Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 6.5K bytes - Click Count (0) -
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.Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 4.7K bytes - Click Count (0) -
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,Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 7.3K bytes - Click Count (0) -
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",Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Tue Mar 24 21:00:18 GMT 2026 - 53.1K bytes - Click Count (0) -
tensorflow/c/c_api.cc
// Adding the gradients to the graph can alter the prefix to prevent // name collisions only if this prefix has not been provided explicitly // by the user. If it was provided, assert that it remained intact. if (prefix != nullptr && !absl::StartsWith(n->name(), prefix_cmp)) { status->status = tensorflow::errors::Internal( "BUG: The gradients prefix have been unexpectedly altered when "Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 04 05:55:32 GMT 2025 - 102.4K bytes - Click Count (0) -
tensorflow/c/eager/c_api.h
TF_Status* status); // Some TF ops need a step container to be set to limit the lifetime of some // resources (mostly TensorArray and Stack, used in while loop gradients in // graph mode). Calling this on a context tells it to start a step. TF_CAPI_EXPORT extern void TFE_ContextStartStep(TFE_Context* ctx); // Ends a step. When there is no active step (that is, every started step has
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Apr 27 21:07:00 GMT 2023 - 22.8K bytes - Click Count (0)