Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for Name (0.14 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_helper.cc

    TempFile::TempFile(const std::string& temp_file_name, std::ios::openmode mode)
        : std::fstream(temp_file_name, mode), name_(temp_file_name) {}
    
    TempFile::TempFile(TempFile&& rhs)
        : std::fstream(std::move(rhs)), name_(std::move(rhs.name_)) {}
    
    TempFile::~TempFile() {
      std::fstream::close();
      std::remove(name_.c_str());
    }
    
    const std::string TempFile::getName() const { return name_; }
    
    bool TempFile::truncate() {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 26 14:56:58 GMT 2020
    - 1.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

                            const char* value, size_t length) {
      tensorflow::NameAttrList func_name;
      func_name.set_name(string(value, value + length));
      desc->node_builder.Attr(attr_name, func_name);
    }
    
    void TF_SetAttrShape(TF_OperationDescription* desc, const char* attr_name,
                         const int64_t* dims, int num_dims) {
      PartialTensorShape shape;
      if (num_dims >= 0) {
    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/c_api_unified_experimental.cc

    void RegisterTracingEngineFactory(const string& name, FactoryFunction factory) {
      assert((!GetFactories().count(name)) ||
             (GetFactories()[name] == factory) &&
                 "Duplicate tracing factory registration");
      GetFactories()[name] = factory;
    }
    
    Status SetDefaultTracingEngine(const char* name) {
      auto entry = GetFactories().find(name);
      if (entry != GetFactories().end()) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

    tensorflow::ServerDef GetServerDef(const std::string& job_name, int num_tasks) {
      tensorflow::ServerDef server_def;
      server_def.set_protocol("grpc");
      server_def.set_job_name(job_name);
      server_def.set_task_index(0);
      tensorflow::ClusterDef* cluster_def = server_def.mutable_cluster();
      tensorflow::JobDef* job_def = cluster_def->add_job();
      job_def->set_name(job_name);
      for (int i = 0; i < num_tasks; i++) {
    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)
  5. tensorflow/c/experimental/gradients/nn_grad.cc

        AbstractTensorHandle* upstream_grad = grad_outputs[0];
        AbstractTensorHandle* activations = forward_outputs_[0];
    
        // Calculate Grad
        std::string name = "relu_grad";
        TF_RETURN_IF_ERROR(ReluGrad(ctx, upstream_grad, activations,
                                    &grad_inputs[0], name.c_str()));
        return absl::OkStatus();
      }
      ~ReluGradientFunction() override {
        for (auto output : forward_outputs_) {
          if (output) {
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc

      if (error_code != 0) {
        errno = error_code;
        return -1;
      } else {
        return 0;
      }
    }
    
    int RemoveSpecialDirectoryEntries(const struct dirent* entry) {
      return strcmp(entry->d_name, ".") != 0 && strcmp(entry->d_name, "..") != 0;
    }
    
    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)
  7. tensorflow/c/eager/c_api_cluster_test.cc

      const string dev1_name =
          absl::StrCat("/job:", first_name, "/replica:0/task:0/device:CPU:0");
      TFE_TensorHandle* var_handle1 = TestVariable(ctx, 2.0, dev1_name);
      EXPECT_NE(var_handle1, nullptr);
      EXPECT_EQ(tensorflow::unwrap(var_handle1)->DeviceName(&status2), dev1_name);
    
      // Another renaming of local device
      const string second_name = "def";
      server_def.set_job_name(second_name);
    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/c_api_experimental.cc

                                                       const char* name) {
      const auto& m = reader->GetVariableToDataTypeMap();
      return static_cast<TF_DataType>(m.at(name));
    }
    
    TF_Tensor* TF_CheckpointReaderGetTensor(TF_CheckpointReader* reader,
                                            const char* name, TF_Status* status) {
      std::unique_ptr<tensorflow::Tensor> tensor;
      reader->GetTensor(name, &tensor, status);
    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)
  9. tensorflow/c/eager/c_api_remote_test.cc

      const char remote_device_name[] =
          "/job:localhost/replica:0/task:1/device:CPU:0";
      auto* h0_task1 =
          TFE_TensorHandleCopyToDevice(h0_task0, ctx, remote_device_name, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      auto* h1_task1 =
          TFE_TensorHandleCopyToDevice(h1_task0, ctx, remote_device_name, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
    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/eager/parallel_device/parallel_device_lib_test.cc

          "/job:localhost/replica:0/task:0/device:CPU:1"};
      ParallelDevice parallel_device(devices);
      const FunctionDef assert_and_collective = FunctionDefHelper::Define(
          // Name
          "AssertAndCollective",
          // Args
          {"x: float", "condition: bool"},
          // Return values
          {"y: float"},
          // Attr def
          {},
          // Nodes
          {
    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)
Back to top