Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 61 for if (0.14 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

          TFE_NewOp(context, "DestroyResourceOp", status), &TFE_DeleteOp);
      if (TF_GetCode(status) != TF_OK) return;
      TFE_OpAddInput(op.get(), handle_, status);
      if (TF_GetCode(status) != TF_OK) return;
      const char* device = TFE_TensorHandleDeviceName(handle_, status);
      if (TF_GetCode(status) != TF_OK) return;
      TFE_OpSetDevice(op.get(), device, status);
      if (TF_GetCode(status) != TF_OK) return;
      int num_retvals = 0;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradient_checker.cc

      // Run the model.
      TF_RETURN_IF_ERROR(
          RunModel(forward, ctx, inputs, model_outputs, use_function));
      AbstractTensorHandlePtr model_out(model_outputs[0]);
    
      TF_Tensor* model_out_tensor;
      TF_RETURN_IF_ERROR(GetValue(model_out.get(), &model_out_tensor));
      int num_dims_out = TF_NumDims(model_out_tensor);
      TF_DeleteTensor(model_out_tensor);
    
      // If the output is a scalar, then return the scalar output
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device.cc

      for (int i = 0; i < num_inputs; ++i) {
        TFE_TensorHandle* input = TFE_OpGetFlatInput(original_op, i, status);
        if (TF_GetCode(status) != TF_OK) return;
        const char* tensor_handle_device =
            TFE_TensorHandleDeviceName(input, status);
        if (TF_GetCode(status) != TF_OK) return;
        if (named_device->name() == tensor_handle_device) {
          // We assume that any tensors already placed on this device are
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/custom_device_testutil.cc

      if (TF_GetCode(s) != TF_OK) return;
      int num_inputs = TFE_OpGetFlatInputCount(original_op, s);
      if (TF_GetCode(s) != TF_OK) return;
      for (int j = 0; j < num_inputs; ++j) {
        TFE_TensorHandle* input = TFE_OpGetFlatInput(original_op, j, s);
        if (TF_GetCode(s) != TF_OK) return;
        const char* input_device = TFE_TensorHandleDeviceName(input, s);
        if (TF_GetCode(s) != TF_OK) return;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_function.cc

        Node* node = inputs[i].oper ? &inputs[i].oper->node : nullptr;
        int idx = inputs[i].index;
    
        TF_RETURN_WITH_CONTEXT_IF_ERROR(
            fn_body->graph.IsValidOutputTensor(node, idx),
            "Encountered while processing input ", i, " into function '", fn_name,
            "'");
        TF_RETURN_WITH_CONTEXT_IF_ERROR(ValidateNonRefOutput(node, idx),
                                        "Encountered while processing input ", i,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  6. tensorflow/c/experimental/next_pluggable_device/c_api.cc

      auto* cc_ctx = reinterpret_cast<tensorflow::OpKernelContext*>(ctx);
      absl::Status cc_status;
      if (var_info == nullptr) {
        cc_status = absl::InvalidArgumentError("TF_VariableInfo is NULL.");
        status->status = cc_status;
        return;
      }
      if (var_info->var_info.var() == nullptr) {
        cc_status = absl::InvalidArgumentError(
            "VariableInfo does not track a resource variable.");
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

                                           status_);
        if (TF_GetCode(status_) != TF_OK) return;
        tf_writable_file::Append(writer.get(), content.c_str(), content.length(),
                                 status_);
        if (TF_GetCode(status_) != TF_OK) return;
        tf_writable_file::Close(writer.get(), status_);
        if (TF_GetCode(status_) != TF_OK) return;
      }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_test.cc

            TFE_DeleteOp);
        if (TF_GetCode(status.get()) != TF_OK) return;
        TFE_OpSetAttrInt(op.get(), "num_replicas", 1);
        TFE_OpAddInput(op.get(), value_one.get(), status.get());
        if (TF_GetCode(status.get()) != TF_OK) return;
        TFE_OpSetDevice(op.get(), device_name, status.get());
        if (TF_GetCode(status.get()) != TF_OK) return;
    
        TFE_TensorHandle* result_handles;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  9. tensorflow/c/eager/c_api_distributed_test.cc

     public:
      static bool enabled_;
      GraphErrorInjectionPass() {}
    
      tensorflow::Status Run(
          const tensorflow::GraphOptimizationPassOptions& options) override {
        if (!enabled_) {
          return absl::OkStatus();
        }
        if (first_call_) {
          first_call_ = false;
          return absl::OkStatus();
        }
        return tensorflow::errors::Internal("Graph pass runs for more than once!");
      }
    
     private:
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

    namespace tensorflow {
    namespace {
    
    using ::testing::HasSubstr;
    using ::testing::NotNull;
    using ::tsl::testing::StatusIs;
    
    PJRT_Buffer* CreateCBuffer() {
      auto status = pjrt::PjrtApi(DEVICE_CPU);
      if (!status.ok()) {
        CHECK_OK(pjrt::SetPjrtApi(DEVICE_CPU, GetPjrtApi()));
      }
      auto pjrt_client = xla::GetCApiClient(DEVICE_CPU);
      CHECK_OK(pjrt_client.status());
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
Back to top