Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for tank (2.63 sec)

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

      EXPECT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      const char* first_device = "/job:worker/replica:0/task:1/device:CPU:0";
      const char* second_device = "/job:worker/replica:0/task:2/device:CPU:0";
      const char* device_name = "/job:localhost/replica:0/task:0/device:CUSTOM:0";
      std::array<const char*, 2> underlying_devices{first_device, second_device};
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

      }
    
      tensorflow::shape_inference::ShapeHandle shape = ic->output(output.index);
    
      int rank = -1;
      if (ic->RankKnown(shape)) {
        rank = ic->Rank(shape);
      }
    
      if (num_dims != rank) {
        status->status = InvalidArgument("Expected rank is ", num_dims,
                                         " but actual rank is ", rank);
        return;
      }
    
      if (num_dims == 0) {
        // Output shape is a scalar.
    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)
  3. tensorflow/c/c_api_experimental.cc

      const auto& shape = reader->GetVariableToShapeMap().at(name);
      int rank = shape.dims();
      if (num_dims != rank) {
        status->status = InvalidArgument("Expected rank is ", num_dims,
                                         " but actual rank is ", rank);
        return;
      }
      for (int i = 0; i < num_dims; i++) {
        dims[i] = shape.dim_size(i);
      }
    }
    
    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)
  4. tensorflow/c/eager/c_api_cluster_test.cc

    namespace {
    
    using ::tensorflow::string;
    
    void ReplaceTaskInServerDef(tensorflow::ServerDef* server_def, int task_index) {
      tensorflow::JobDef* job_def = server_def->mutable_cluster()->mutable_job(0);
      int port = tensorflow::testing::PickUnusedPortOrDie();
      job_def->mutable_tasks()->at(task_index) =
          tensorflow::strings::StrCat("localhost:", port);
    }
    
    void CheckTFE_TensorHandleHasFloats(TFE_TensorHandle* handle,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
      std::vector<std::string> devices{
          "/job:localhost/replica:0/task:0/device:CPU:0",
          "/job:localhost/replica:0/task:0/device:CPU:1"};
      ParallelDevice parallel_device(std::move(devices));
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> handle_op(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_remote_test.cc

    namespace {
    
    using ::tensorflow::string;
    
    void TestRemoteExecute(bool async) {
      tensorflow::ServerDef server_def = GetServerDef(2);
    
      // This server def has the task index set to 0.
      string serialized = server_def.SerializeAsString();
    
      server_def.set_task_index(1);
    
      std::unique_ptr<tensorflow::GrpcServer> worker_server;
      ASSERT_TRUE(tensorflow::GrpcServer::Create(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 12 00:14:22 GMT 2020
    - 5.4K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_distributed_test.cc

        // During execution:
        //   * task:0 processes main function `VariableAddFunctionWithGraphError`
        //     and places the 'read0_maybe_with_graph_error' op on task:2
        //   * task:0 partitions the main function with a subgraph containing
        //     'read0_maybe_with_graph_error' sent to task:2
        //   * task:2 graph pass reports an error when it sees
    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)
  8. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    
      const char* device_name = "/job:localhost/replica:0/task:0/device:CUSTOM:0";
      const char* first_device_name =
          "/job:localhost/replica:0/task:0/device:CPU:0";
      const char* second_device_name =
          "/job:localhost/replica:0/task:0/device:CPU:1";
      std::array<const char*, 2> underlying_devices{first_device_name,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  9. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

          TF_NewTensor(TF_FLOAT, nullptr, 0, values, num_bytes, &FloatDeallocator,
                       nullptr),
          TF_DeleteTensor);
      return TensorHandlePtr(TFE_NewTensorHandle(tensor.get(), status));
    }
    
    // Creates a rank-one TFE_TensorHandle with value `v`.
    TensorHandlePtr VectorFloatTensorHandle(const std::vector<float>& v,
                                            TF_Status* status) {
      const int num_bytes = v.size() * sizeof(float);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  10. tensorflow/c/eager/custom_device_testutil.cc

      LoggingDevice* device = new LoggingDevice;
      device->arrived_flag = arrived_flag;
      device->executed_flag = executed_flag;
      device->device_name = name;
      device->underlying_device = "/job:localhost/replica:0/task:0/device:CPU:0";
      device->strict_scope_placement = strict_scope_placement;
      TFE_RegisterCustomDevice(context, custom_device, name, device, status);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
Back to top