Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for gram (0.16 sec)

  1. tensorflow/c/experimental/gradients/nn_grad.cc

                     absl::Span<AbstractTensorHandle* const> grad_outputs,
                     absl::Span<AbstractTensorHandle*> grad_inputs) override {
        // Grad for Softmax Input
        TF_RETURN_IF_ERROR(BroadcastMul(
            ctx, grad_outputs[0], forward_outputs_[1],
            grad_inputs.subspan(0, 1)));  // upstream_grad * local softmax grad
    
        // Grad for labels is null
        grad_inputs[1] = nullptr;
        return absl::OkStatus();
      }
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/gradients/nn_grad.h

    limitations under the License.
    ==============================================================================*/
    #ifndef TENSORFLOW_C_EXPERIMENTAL_GRADIENTS_NN_GRAD_H_
    #define TENSORFLOW_C_EXPERIMENTAL_GRADIENTS_NN_GRAD_H_
    
    #include "tensorflow/c/eager/gradients.h"
    
    namespace tensorflow {
    namespace gradients {
    GradientFunction* ReluRegisterer(const ForwardOperation& op);
    C
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Dec 03 22:28:48 GMT 2020
    - 1.2K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/gradients/grad_test_helper.h

    #ifndef TENSORFLOW_C_EXPERIMENTAL_GRADIENTS_GRAD_TEST_HELPER_H_
    #define TENSORFLOW_C_EXPERIMENTAL_GRADIENTS_GRAD_TEST_HELPER_H_
    
    #include "tensorflow/c/eager/gradients.h"
    #include "tensorflow/c/eager/unified_api_testutil.h"
    
    namespace tensorflow {
    namespace gradients {
    namespace internal {
    
    void CompareNumericalAndAutodiffGradients(
        Model model, Model grad_model, AbstractContext* ctx,
    C
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Jan 14 20:36:51 GMT 2021
    - 1.5K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.cc

                n->name(),
                "). This is a bug. Please file an issue at "
                "https://github.com/tensorflow/tensorflow/issues.");
          }
        }
      }
    
      // Unpack the results from grad_outputs_arg.
      TFOutputsFromOutputs(dy_arg, dy);
    #endif  // defined(IS_MOBILE_PLATFORM) || defined(IS_SLIM_BUILD)
    }
    
    // TF_Session functions ----------------------------------------------
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/gradients/nn_grad_test.cc

    limitations under the License.
    ==============================================================================*/
    #include "tensorflow/c/experimental/gradients/nn_grad.h"
    
    #include "tensorflow/c/eager/c_api_test_util.h"
    #include "tensorflow/c/eager/unified_api_testutil.h"
    #include "tensorflow/c/experimental/gradients/grad_test_helper.h"
    #include "tensorflow/c/experimental/gradients/tape/tape_context.h"
    #include "tensorflow/c/experimental/ops/nn_ops.h"
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_test.cc

        TF_DeleteStatus(s_);
      }
    
      void TestGradientsSuccess(bool grad_inputs_provided) {
        TF_Output inputs[2];
        TF_Output outputs[1];
        TF_Output grad_outputs[2];
        TF_Output expected_grad_outputs[2];
    
        BuildSuccessGraph(inputs, outputs);
        BuildExpectedGraph(grad_inputs_provided, expected_grad_outputs);
    
        AddGradients(grad_inputs_provided, nullptr, inputs, 2, outputs, 1,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    #include "tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h"
    
    #include <cstring>
    #include <memory>
    #include <sstream>
    #include <utility>
    
    #include "absl/synchronization/mutex.h"
    #include "tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h"
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

    limitations under the License.
    ==============================================================================*/
    
    #include "tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h"
    
    #include <cstring>
    
    #include "tensorflow/c/tf_status.h"
    #include "tensorflow/c/tf_status_internal.h"
    #include "tensorflow/core/lib/core/status_test_util.h"
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  9. tensorflow/c/eager/gradient_checker.cc

        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));
        TF_DeleteTensor(grad_tensor);
        dtheta_approx[i] = grad_data[0];
      }
    
      // Populate *numerical_grad with the data from dtheta_approx.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/gradients/not_differentiable.h

    namespace tensorflow {
    namespace gradients {
    // Ignores `grad_outputs` and sets all entries in grad_inputs to nullptr.
    class NotDifferentiableGradientFunction : public GradientFunction {
      Status Compute(AbstractContext* ctx,
                     absl::Span<AbstractTensorHandle* const> grad_outputs,
                     absl::Span<AbstractTensorHandle*> grad_inputs) override;
    };
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Dec 03 22:28:48 GMT 2020
    - 1.5K bytes
    - Viewed (0)
Back to top