Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CreateVarHandle (0.21 sec)

  1. tensorflow/c/eager/c_api_test_util.h

                                                  int num_virtual_gpus = 0);
    
    // Create a variable handle with name `variable_name` on a device with name
    // `device_name`.
    TFE_TensorHandle* CreateVarHandle(TFE_Context* ctx,
                                      const tensorflow::string& device_name,
                                      const tensorflow::string& variable_name);
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Jul 17 23:43:59 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_test_util.cc

        for (int i = 0; i < num_virtual_gpus; ++i) {
          virtual_devices->add_memory_limit_mb(200);
        }
      }
      return server_def;
    }
    
    TFE_TensorHandle* CreateVarHandle(TFE_Context* ctx,
                                      const tensorflow::string& device_name,
                                      const tensorflow::string& variable_name) {
      TF_Status* status = TF_NewStatus();
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test.cc

      // created with `isolate_session_state` set to false.
      {
        // Create a handle to `var2`, using `ctx_1`.
        TFE_TensorHandle* var_handle =
            CreateVarHandle(ctx_1, remote_device, /*variable_name=*/"var2");
    
        TFE_TensorHandle* handle_1 = nullptr;
        int num_retvals = 1;
        TF_Status* status = TF_NewStatus();
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_experimental_test.cc

      // created with `isolate_session_state` set to false, and update should
      // preserve it.
      {
        // Create a handle to `var`, using `ctx_1`.
        TFE_TensorHandle* var_handle =
            CreateVarHandle(ctx_1, remote_device, /*variable_name=*/"var");
    
        TFE_TensorHandle* handle_1 = nullptr;
        int num_retvals = 1;
        TF_Status* status = TF_NewStatus();
        TFE_Op* op = TFE_NewOp(ctx_1, "ReadVariableOp", status);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 03 03:14:26 UTC 2023
    - 31.5K bytes
    - Viewed (0)
Back to top