Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for vnopts (0.23 sec)

  1. tensorflow/c/eager/c_api_debug_test.cc

    #include "tensorflow/core/platform/test.h"
    
    TEST(CApiDebug, ScalarCPU) {
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_Context* ctx = TFE_NewContext(opts, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
      TFE_TensorHandle* h = TestScalarTensorHandle(ctx, 1.0f);
      TFE_TensorDebugInfo* debug_info = TFE_TensorHandleTensorDebugInfo(h, status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 06 22:10:09 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

                                                 const char* oper_name, int index) {
      opts->tensor_id_data.push_back(oper_name);
      const string& oper_name_str = opts->tensor_id_data.back();
      opts->opts.return_tensors.emplace_back(oper_name_str, index);
    }
    
    int TF_ImportGraphDefOptionsNumReturnOutputs(
        const TF_ImportGraphDefOptions* opts) {
      return opts->opts.return_tensors.size();
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

    TEST(PARALLEL_DEVICE, TestRemoteBasic) {
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_Context, decltype(&TFE_DeleteContext)> context(
          TFE_NewContext(opts.get(), status.get()), TFE_DeleteContext);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  4. tensorflow/c/eager/dlpack_test.cc

    }
    
    TEST(DLPack, HandleFromDLPackStrides) {
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_Context* ctx = TFE_NewContext(opts, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
      TestHandleFromDLPack(status, ctx, {}, {});
      TestHandleFromDLPack(status, ctx, {4}, {});
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/custom_device_test.cc

    TEST(CUSTOM_DEVICE, RegisterSimpleDevice) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_Context* context = TFE_NewContext(opts, status.get());
      TFE_DeleteContextOptions(opts);
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      bool arrived = false;
      bool executed = false;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  6. tensorflow/c/c_test_util.cc

      return names;
    }
    
    CSession::CSession(TF_Graph* graph, TF_Status* s, bool use_XLA) {
      TF_SessionOptions* opts = TF_NewSessionOptions();
      TF_EnableXLACompilation(opts, use_XLA);
      session_ = TF_NewSession(graph, opts, s);
      TF_DeleteSessionOptions(opts);
    }
    
    CSession::CSession(TF_Session* session) : session_(session) {}
    
    CSession::~CSession() {
      TF_Status* s = TF_NewStatus();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  7. tensorflow/c/eager/c_api_cluster_test.cc

      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(async));
      TFE_ContextOptionsSetDevicePlacementPolicy(opts, TFE_DEVICE_PLACEMENT_SILENT);
      TFE_Context* ctx = TFE_NewContext(opts, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
      std::unique_ptr<TF_Buffer, decltype(&TF_DeleteBuffer)> config(
          TF_CreateConfig(
              /*xla*/ false,
              /* gpu_memory_allow_growth */ true, /* num_cpu_devices */
              2),
          TF_DeleteBuffer);
      TFE_ContextOptionsSetConfig(opts.get(), config->data, config->length,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_remote_test.cc

      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(async));
      TFE_ContextOptionsSetDevicePlacementPolicy(opts,
                                                 TFE_DEVICE_PLACEMENT_EXPLICIT);
      TFE_Context* ctx = TFE_NewContext(opts, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 12 00:14:22 GMT 2020
    - 5.4K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_experimental.cc

      // TODO(bgogul): Set output_resource_shapes_and_types.
    }
    
    void TF_ImportGraphDefOptionsSetValidateColocationConstraints(
        TF_ImportGraphDefOptions* opts, unsigned char enable) {
      opts->opts.validate_colocation_constraints = enable;
    }
    
    // Load a Pluggable Device library.
    // On success, returns the handle to library in result and return OK from the
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
Back to top