Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 53 of 53 for if (0.16 sec)

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

        AbstractContext* ctx, absl::Span<AbstractTensorHandle* const> inputs,
        absl::Span<AbstractTensorHandle*> outputs) {
      AbstractTensorHandle* loss;
      AbstractTensorHandle* backprop;
      TF_RETURN_IF_ERROR(ops::SparseSoftmaxCrossEntropyWithLogits(
          ctx, inputs[0], inputs[1], &loss, &backprop,
          "SparseSoftmaxCrossEntropyWithLogits"));
      // `gradient_checker` only works with model that returns only 1 tensor.
    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)
  2. src/cmd/cgo/internal/swig/testdata/callback/main.cc

    // license that can be found in the LICENSE file.
    
    // This .cc file will be automatically compiled by the go tool and
    // included in the package.
    
    #include <string>
    #include "main.h"
    
    std::string Caller::call() {
    	if (callback_ != 0)
    		return callback_->run();
    	return "";
    C++
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 384 bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_experimental_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      ASSERT_EQ(0, device_id) << device_id;
    
      // Disable the test if no GPU is present.
      string gpu_device_name;
      if (GetDeviceName(ctx, &gpu_device_name, "GPU")) {
        TFE_TensorHandle* hgpu = TFE_TensorHandleCopyToDevice(
            hcpu, ctx, gpu_device_name.c_str(), status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
Back to top