Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for service (0.18 sec)

  1. tensorflow/c/experimental/grappler/grappler_test.cc

        TF_SetStatus(status, TF_OK, "");
        PopulateDefaultParam(params);
        params->device_type = "Device0";
      };
      auto plugin_init_1 = [](TP_OptimizerRegistrationParams* const params,
                              TF_Status* const status) -> void {
        TF_SetStatus(status, TF_OK, "");
        PopulateDefaultParam(params);
        params->device_type = "Device1";
      };
    
      TF_ASSERT_OK(InitGraphPlugin(plugin_init_0));
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradients_test.cc

        t.reset(x_raw);
      }
    
      AbstractOperationPtr check_numerics_op(ctx->CreateOperation());
      ForwardOperation forward_op;
      Status s = Reset(check_numerics_op.get(), "CheckNumerics",
                       /*raw_device_name=*/nullptr, &forward_op);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
      if (isa<TracingOperation>(check_numerics_op.get())) {
        s = dyn_cast<TracingOperation>(check_numerics_op.get())
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

          TF_DeleteStatus(status);
          return "";
        }
        TF_DeleteStatus(status);
    
        // We add a random value into `test_dir` to ensures that two consecutive
        // runs are unlikely to clash.
        std::random_device rd;
        std::mt19937 gen(rd());
        std::uniform_int_distribution<> distribution;
        std::string rng_val = std::to_string(distribution(gen));
        return tensorflow::io::JoinPath(std::string(test_dir), rng_val);
      } else {
    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)
  4. tensorflow/c/eager/c_api.cc

                                  const char* device_name, void* device_info,
                                  TF_Status* status) {
      // Fill in default values for optional functionality.
      if (device.pack == nullptr) {
        device.pack = &DefaultCustomDevicePack;
      }
      auto custom_device = std::make_unique<tensorflow::CustomDeviceAPI>(
          ctx, device, device_info, device_name);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  5. tensorflow/c/eager/c_api_test_util.cc

                          send_device.size());
      TFE_OpSetAttrString(op, "recv_device", recv_device.c_str(),
                          recv_device.size());
      TFE_OpSetAttrInt(op, "send_device_incarnation", send_device_incarnation);
    
      return op;
    }
    
    bool GetDeviceName(TFE_Context* ctx, string* device_name,
                       const char* device_type) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
  6. tensorflow/c/eager/c_api_remote_test_util.cc

        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      } else if (!async) {
        // Set the local device to CPU to easily validate mirroring
        string cpu_device_name;
        ASSERT_TRUE(GetDeviceName(ctx, &cpu_device_name, "CPU"));
        TFE_OpSetDevice(matmul, cpu_device_name.c_str(), status);
        EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
        auto remote_arg =
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.cc

        const DeviceType& device_type) {
      TF_ASSIGN_OR_RETURN(tsl::StatusOr<xla::PjRtClient*> pjrt_client,
                          tensorflow::GetPjRtClient(device_type));
      auto* pjrt_c_api_client = dynamic_cast<xla::PjRtCApiClient*>(*pjrt_client);
      if (pjrt_c_api_client == nullptr) {
        return absl::InternalError(absl::StrCat("PjRtClient for ",
                                                device_type.type_string(),
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_unified_experimental_graph.cc

      void Release() override { delete this; }
      Status Reset(const char* op, const char* raw_device_name) override {
        if (op_) {
          return errors::FailedPrecondition("Reset called on already built op.");
        }
        if (raw_device_name) {
          device_name_ = raw_device_name;
        }
        op_type_ = op;
        return absl::OkStatus();
      }
      Status SetOpName(const char* const op_name) override {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  9. tensorflow/c/c_api_experimental_test.cc

      TF_Status* status = TF_NewStatus();
      string lib_path =
          tensorflow::GetDataDependencyFilepath(tensorflow::io::JoinPath(
              "tensorflow", "core", "common_runtime", "next_pluggable_device", "c",
              "test_next_pluggable_device_plugin.so"));
      TF_Library* lib = TF_LoadPluggableDeviceLibrary(lib_path.c_str(), status);
      TF_Code code = TF_GetCode(status);
      string status_msg(TF_Message(status));
      TF_DeleteStatus(status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  10. tensorflow/c/eager/unified_api_testutil.cc

            output->Unref();
          }
          TF_RETURN_IF_ERROR(ctx->RegisterFunction(func));
        }
    
        AbstractOperationPtr fn_op(ctx->CreateOperation());
        TF_RETURN_IF_ERROR(fn_op->Reset(fn_name, /*raw_device_name=*/nullptr));
        for (auto input : inputs) {
          TF_RETURN_IF_ERROR(fn_op->AddInput(input));
        }
        int retvals = outputs.size() - null_indices.size();
        std::vector<AbstractTensorHandle*> fn_outputs(retvals);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 5.7K bytes
    - Viewed (0)
Back to top