Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for policy (0.2 sec)

  1. tensorflow/c/eager/c_api.cc

      options->async = enable;
    }
    
    void TFE_ContextOptionsSetDevicePlacementPolicy(
        TFE_ContextOptions* options, TFE_ContextDevicePlacementPolicy policy) {
      options->device_placement_policy = policy;
    }
    
    void TFE_DeleteContextOptions(TFE_ContextOptions* options) { delete options; }
    
    TFE_Context* TFE_NewContext(const TFE_ContextOptions* opts, TF_Status* status) {
      if (opts->use_tfrt) {
    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)
  2. tensorflow/c/eager/c_api_unified_experimental_graph.cc

              "GraphOperation::Reset must be called before calling SetOpName.");
        }
        // TODO(b/145674566): We use Graph::NewName to get a unique name here but
        // this may not be consistent with python's naming policy.
        mutex_lock l(g_->mu);
        op_.reset(new TF_OperationDescription(g_, op_type_.c_str(),
                                              g_->graph.NewName(op_name).c_str()));
        return absl::OkStatus();
      }
    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)
  3. tensorflow/c/eager/c_api_test.cc

      TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(async));
      TFE_ContextOptionsSetDevicePlacementPolicy(opts, global_policy);
      TFE_Context* ctx = TFE_NewContext(opts, status.get());
      if (thread_policy != global_policy) {
        TFE_ContextSetThreadLocalDevicePlacementPolicy(ctx, thread_policy);
      }
      TFE_DeleteContextOptions(opts);
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
Back to top