Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for define (0.23 sec)

  1. tensorflow/c/c_api.cc

    void TF_DeleteServer(TF_Server* server) {
    #if !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD)
      delete server;
    #endif  // !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD)
    }
    
    void TF_RegisterLogListener(void (*listener)(const char*)) {
    #if !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD)
      tensorflow::logging::RegisterListener(listener);
    #endif  // !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD)
    }
    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)
  2. tensorflow/c/eager/c_api_unified_experimental.cc

    // Public C API entry points
    //
    // These are only the generic entry points for the C API. This file does not
    // have any visibility into the graph/eager implementation and is only providing
    // C bindings to the abstract classes defined in the
    // c_api_unified_experimental_internal.h header.
    //
    // =============================================================================
    
    using tensorflow::AbstractFunction;
    using tensorflow::AbstractTensorHandle;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_distributed_test.cc

      const string composite_device_name =
          "/job:localhost/replica:0/task:0/device:COMPOSITE:0";
      EXPECT_EQ(TFE_TensorHandleDeviceName(packed_handle, status),
                composite_device_name);
      EXPECT_EQ(TFE_TensorHandleBackingDeviceName(packed_handle, status),
                composite_device_name);
      ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_experimental.cc

    TF_Library* TF_LoadPluggableDeviceLibrary(const char* library_filename,
                                              TF_Status* status) {
    #if defined(IS_MOBILE_PLATFORM) || defined(IS_SLIM_BUILD)
      status->status = tensorflow::errors::Unimplemented(
          "PluggableDevice plugin functionality is not supported on mobile");
      return nullptr;
    #else
      TF_Library* lib_handle = new TF_Library;
      static tensorflow::mutex mu(tensorflow::LINKER_INITIALIZED);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

                                      absl::optional<int64_t> step_id) const {
      for (int device_index = 0; device_index < underlying_devices_.size();
           ++device_index) {
        DeviceThread* device_thread = device_threads_[device_index].get();
        std::vector<TFE_TensorHandle*> device_inputs;
        device_inputs.reserve(inputs.size());
        for (int input_index = 0; input_index < inputs.size(); ++input_index) {
    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/grappler/grappler.cc

      TF_RETURN_IF_ERROR(ValidateTPOptimizerConfigs(optimizer_configs));
    
      CGraphOptimizerRegister(
          [=]() { return new CGraphOptimizer(optimizer, params.device_type); },
          optimizer_configs, params.device_type);
    
      return absl::OkStatus();
    }
    
    }  // namespace grappler
    }  // namespace tensorflow
    
    void TF_GetNodesToPreserveListSize(const TF_GrapplerItem* item, int* num_values,
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  7. tensorflow/c/c_api_test.cc

        CHECK_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
        LOG(INFO) << "Device " << i << " has name " << device_name << ", type "
                  << device_type;
        if (string(device_type) == DEVICE_GPU) {
          return device_name;
        }
      }
      // No GPU device found.
      return "";
    }
    
    string GPUDeviceName() {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
    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)
  8. tensorflow/c/eager/c_api_experimental_test.cc

      // Remote device on `worker2`.
      const char remote_device[] = "/job:localhost/replica:0/task:2/device:CPU:0";
      // `ctx_0`, `ctx_1` contains `remote_device`.
      {
        const std::vector<std::string>& device_names = ListDeviceNames(ctx_0);
        ASSERT_TRUE(std::find(device_names.begin(), device_names.end(),
                              remote_device) != device_names.end());
      }
    
      {
    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)
  9. tensorflow/c/eager/c_api_test.cc

      // Remote device on `worker1`.
      const char remote_device[] = "/job:localhost/replica:0/task:1/device:CPU:0";
      // `ctx_0`, `ctx_1`, `ctx_2` contains `remote_device`.
      {
        const std::vector<std::string>& device_names = ListDeviceNames(ctx_0);
        ASSERT_TRUE(std::find(device_names.begin(), device_names.end(),
                              remote_device) != device_names.end());
      }
    
      {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  10. tensorflow/c/c_api_function_test.cc

    };
    
    TEST_F(CApiFunctionTest, OneOp_ZeroInputs_OneOutput) {
      /*
       *                constant
       *                   |
       *                   v
       */
      // Define
      TF_Operation* c = ScalarConst(10, func_graph_, s_, "scalar10");
      Define(-1, {}, {}, {c}, {});
    
      // Use, run, and verify
      TF_Operation* func_op = Use({});
      Run({}, func_op, 10);
      VerifyFDef({"scalar10_0"}, {}, {{"scalar10", DT_INT32}},
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
Back to top