Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for berate (0.16 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

      ASSERT_TRUE(tensorflow::GrpcServer::Create(
                      server_def, tensorflow::Env::Default(), &worker_server1)
                      .ok());
      ASSERT_TRUE(worker_server1->Start().ok());
    
      server_def.set_task_index(2);
      std::unique_ptr<tensorflow::GrpcServer> worker_server2;
      ASSERT_TRUE(tensorflow::GrpcServer::Create(
                      server_def, tensorflow::Env::Default(), &worker_server2)
    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)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc

      // When creating file, use the same permissions as original
      mode_t open_mode = mode & (S_IRWXU | S_IRWXG | S_IRWXO);
    
      // O_WRONLY | O_CREAT | O_TRUNC:
      //   Open file for write and if file does not exist, create the file.
      //   If file exists, truncate its size to 0.
      int dst_fd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, open_mode);
      if (dst_fd < 0) {
        close(src_fd);
        return -1;
      }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jan 16 05:36:52 GMT 2020
    - 2.1K bytes
    - Viewed (1)
  3. tensorflow/c/c_api.cc

                                     export_dir, tag_set, &bundle);
      if (!status->status.ok()) return nullptr;
    
      // Create a TF_Graph from the MetaGraphDef. This is safe as long as Session
      // extends using GraphDefs. The Graph instance is different, but equivalent
      // to the one used to create the session.
      //
      // TODO(jhseu): When Session is modified to take Graphs instead of
    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)
  4. tensorflow/c/eager/custom_device_test.cc

      RegisterLoggingDevice(context.get(), name, /*strict_scope_placement=*/true,
                            &arrived, &executed, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
      // Create a variable handle placed on the custom device.
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> op(
          TFE_NewOp(context.get(), "VarHandleOp", status.get()), TFE_DeleteOp);
    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)
  5. tensorflow/c/experimental/next_pluggable_device/c_api.cc

          container_name, plugin_resource_name, &tf_plugin_resource,
          [plugin_resource_name, create_func, create_func_args,
           delete_func](tensorflow::PluginResource** new_resource) {
            void* opaque_plugin_resource = create_func(create_func_args);
            *new_resource = new tensorflow::PluginResource(
                opaque_plugin_resource, plugin_resource_name, delete_func);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  6. tensorflow/c/eager/c_api_distributed_test.cc

      ASSERT_TRUE(tensorflow::GrpcServer::Create(
                      server_def, tensorflow::Env::Default(), &worker_server1)
                      .ok());
      ASSERT_TRUE(worker_server1->Start().ok());
    
      server_def.set_task_index(2);
      std::unique_ptr<tensorflow::GrpcServer> worker_server2;
      ASSERT_TRUE(tensorflow::GrpcServer::Create(
                      server_def, tensorflow::Env::Default(), &worker_server2)
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

    // correspond fairly well to the implementation, but testing the C++ directly is
    // another option.
    
    namespace tensorflow {
    namespace parallel_device {
    
    Variable* Variable::Create(TFE_Context* context, TF_DataType type,
                               const int64_t* dims, const int num_dims,
                               const char* device, TF_Status* status) {
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> op(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      RegisterParallelDevice(context.get(), device_name, underlying_devices,
                             status.get());
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    
      // Create two vectors with different lengths
      std::vector<float> size_two_value{1., 2.};
      std::vector<float> size_three_value{1., 2., 3.};
      TensorHandlePtr size_two(
          VectorFloatTensorHandle(size_two_value, status.get()));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  9. tensorflow/c/experimental/grappler/grappler_test.cc

      params->struct_size = TP_OPTIMIZER_REGISTRATION_PARAMS_STRUCT_SIZE;
      params->optimizer_configs->struct_size = TP_OPTIMIZER_CONFIGS_STRUCT_SIZE;
      params->optimizer->struct_size = TP_OPTIMIZER_STRUCT_SIZE;
      params->optimizer->create_func = nullptr;
      params->optimizer->optimize_func = optimize_func;
      params->optimizer->destroy_func = nullptr;
    }
    
    TEST(Grappler, SuccessfulRegistration) {
    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)
  10. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

          : status_(TF_NewStatus()),
            // If the context's default exector is set to async, re-using that in
            // each thread would cause collectives to deadlock. For consistency we
            // create a new sync executor for every thread.
            //
            // TODO(allenl): We should have an async API that works with the
            // parallel device.
            device_(device),
            executor_(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
Back to top