Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for computing (0.2 sec)

  1. tensorflow/c/eager/abstract_tensor_handle.cc

    namespace tensorflow {
    
    std::string AbstractTensorHandle::DebugString() const {
      PartialTensorShape shape;
      Status s = Shape(&shape);
      std::string shape_string;
      if (!s.ok()) {
        shape_string = "<error computing shape>";
      } else {
        shape_string = shape.DebugString();
      }
      return absl::StrCat("TensorHandle(shape=", shape_string,
                          ", dtype=", DataType_Name(DataType()),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device.cc

    // reference counts drop to zero.
    void ParallelTensorDeallocator(void* data) {
      delete reinterpret_cast<ParallelTensor*>(data);
    }
    
    // Used as an argument to TFE_NewCustomDeviceTensorHandle, for computing the
    // number of dimensions of a parallel tensor.
    int ParallelTensorNumDims(void* data, TF_Status* status) {
      const std::vector<int64_t>* shape;
      Status s = reinterpret_cast<ParallelTensor*>(data)->Shape(&shape);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/gradients/math_grad_test.cc

          status_ =
              BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw);
          ASSERT_EQ(errors::OK, status_.code()) << status_.message();
          immediate_execution_ctx_.reset(ctx_raw);
        }
    
        // Computing numerical gradients with TensorFloat-32 is numerically
        // unstable. Some forward pass tests also fail with TensorFloat-32 due to
        // low tolerances
        enable_tensor_float_32_execution(false);
      }
    
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Apr 13 17:32:14 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/immediate_execution_tensor_handle.cc

      std::string shape_string;
      if (Shape(&shape).ok()) {
        shape_string = shape.DebugString();
      } else {
        shape_string = "<error computing shape>";
      }
      std::string value_string;
      if (!SummarizeValue(value_string).ok()) {
        value_string = "<error computing value>";
      }
      if (value_string.length() > 100) {
        // The default NumPy-style output can be distractingly long in error
        // messages.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

            PartialTensorShape first_shape;
            TF_RETURN_IF_ERROR(unwrap(tensors_[0].get())->Shape(&first_shape));
            return errors::Unimplemented(absl::StrCat(
                "Computing the shape of a ParallelTensor when the components do "
                "not all have the same rank is not supported. One tensor had "
                "shape ",
                first_shape.DebugString(), " and another had shape ",
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  6. tensorflow/c/experimental/gradients/nn_grad_test.cc

      // `gradient_checker` only works with model that returns only 1 tensor.
      // Although, `ops::SparseSoftmaxCrossEntropyWithLogits` returns 2 tensors, the
      // second tensor isn't needed for computing gradient so we could safely drop
      // it.
      outputs[0] = loss;
      backprop->Unref();
      return absl::OkStatus();
    }
    
    Status BiasAddModel(AbstractContext* ctx,
    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)
  7. tensorflow/c/experimental/gradients/array_grad_test.cc

      TF_RETURN_IF_ERROR(
          ops::IdentityN(ctx, inputs, absl::MakeSpan(temp_outputs), "IdentityN"));
      // Although, `ops::IdentityN` returns 2 tensors, the first tensor isn't needed
      // for computing gradient so we could safely drop it.
      outputs[0] = temp_outputs[1];
      temp_outputs[0]->Unref();
      return absl::OkStatus();
    }
    
    class CppGradients
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_unified_experimental_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      auto* arg1 = TF_AddFunctionParameter(graph_ctx, TF_FLOAT, {-1, nullptr}, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      // Create a first "Add" computing `arg0 + arg1`.
      TF_AbstractTensor* add_output1;
      {
        // Build an abstract operation, inputs and output.
        auto* add_op = TF_NewAbstractOp(graph_ctx);
        TF_AbstractOpSetOpType(add_op, "Add", s);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  9. tensorflow/c/eager/gradient_checker_test.cc

          Status s =
              BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw);
          ASSERT_EQ(errors::OK, s.code()) << s.message();
          ctx_.reset(ctx_raw);
        }
    
        // Computing numerical gradients with TensorFloat-32 is numerically
        // unstable. Some forward pass tests also fail with TensorFloat-32 due to
        // low tolerances
        enable_tensor_float_32_execution(false);
      }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

                                             gcs::Fields("size"));
        if (!metadata) {
          TF_SetStatusFromGCSStatus(metadata.status(), status);
          return;
        }
        // We have to delete the temporary object after composing.
        auto delete_status = gcs_client->DeleteObject(bucket, temporary_object);
        if (!delete_status.ok()) {
          TF_SetStatusFromGCSStatus(delete_status, status);
          return;
        }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
Back to top