Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for DELETE (0.2 sec)

  1. tensorflow/c/c_api.cc

      TF_Graph* const graph = s->graph;
      if (graph != nullptr) {
        graph->mu.lock();
        graph->sessions.erase(s);
        const bool del = graph->delete_requested && graph->sessions.empty();
        graph->mu.unlock();
        if (del) delete graph;
      }
      delete s->session;
      delete s;
    }
    
    void TF_SessionRun(TF_Session* session, const TF_Buffer* run_options,
    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)
  2. tensorflow/c/eager/c_api_unified_experimental.cc

    void TF_DeleteAbstractTensor(TF_AbstractTensor* t) { unwrap(t)->Unref(); }
    
    TF_OutputList* TF_NewOutputList() { return wrap(new OutputList); }
    void TF_DeleteOutputList(TF_OutputList* o) { delete unwrap(o); }
    void TF_OutputListSetNumOutputs(TF_OutputList* o, int num_outputs,
                                    TF_Status* s) {
      unwrap(o)->expected_num_outputs = num_outputs;
      unwrap(o)->outputs.clear();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. tensorflow/c/env.cc

        *result = nullptr;
        return false;
      }
    
      *result = list->list->at(list->position++).c_str();
      return true;
    }
    
    void TF_StringStreamDone(TF_StringStream* list) {
      delete list->list;
      delete list;
    }
    TF_StringStream* TF_GetChildren(const char* dirname, TF_Status* status) {
      auto* children = new std::vector<::tensorflow::string>;
    
      TF_SetStatus(status, TF_OK, "");
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  4. tensorflow/c/c_test_util.cc

    static void BoolDeallocator(void* data, size_t, void* arg) {
      delete[] static_cast<bool*>(data);
    }
    
    static void Int32Deallocator(void* data, size_t, void* arg) {
      delete[] static_cast<int32_t*>(data);
    }
    
    static void DoubleDeallocator(void* data, size_t, void* arg) {
      delete[] static_cast<double*>(data);
    }
    
    static void FloatDeallocator(void* data, size_t, void* arg) {
      delete[] static_cast<float*>(data);
    }
    
    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)
  5. tensorflow/c/env_test.cc

        TF_FileStatistics stats;
        TF_FileStat(filepath.c_str(), &stats, s);
        ASSERT_EQ(stats.length, strlen(data));
        ASSERT_FALSE(stats.is_directory);
        ASSERT_GT(stats.mtime_nsec, 0);
    
        // Trying to delete a non-empty directory should fail.
        TF_DeleteDir(dirpath.c_str(), s);
        ASSERT_NE(TF_OK, TF_GetCode(s))
            << "TF_DeleteDir unexpectedly succeeded with a non-empty directory "
            << dirpath;
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/grappler/grappler.cc

              *reinterpret_cast<const tensorflow::grappler::GrapplerItem*>(item)));
    }
    
    void TF_DeleteGraphProperties(TF_GraphProperties* graph_properties) {
      if (graph_properties == nullptr) return;
      delete reinterpret_cast<tensorflow::grappler::GraphProperties*>(
          graph_properties);
    }
    
    void TF_InferStatically(TF_GraphProperties* graph_properties,
                            TF_Bool assume_valid_feeds,
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  7. tensorflow/c/eager/dlpack.cc

    }
    
    // Deleter for DLManagedTensor
    void DLManagedTensorDeleter(DLManagedTensor* arg) {
      TfDlManagedTensorCtx* owner =
          static_cast<TfDlManagedTensorCtx*>(arg->manager_ctx);
      owner->reference.Unref();
      delete owner;
    }
    
    // Converts TF_DATAType to DLPack data type.
    DLDataType GetDlDataType(TF_DataType data_type, TF_Status* status) {
      DLDataType dtype;
      dtype.lanes = 1;
      dtype.bits = TF_DataTypeSize(data_type) * 8;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/gradients/grad_test_helper.cc

        for (int j = 0; j < num_elem_numerical; j++) {
          ASSERT_NEAR(dnumerical[j], danalytical[j], abs_error);
        }
        TF_DeleteTensor(analytical_tensor);
        TF_DeleteTensor(numerical_tensor);
        delete[] danalytical;
        delete[] dnumerical;
        outputs[i]->Unref();
      }
    }
    
    void CheckTensorValue(AbstractTensorHandle* t, absl::Span<const float> manuals,
                          absl::Span<const int64_t> dims, double abs_error) {
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_experimental.cc

    }
    
    void TF_DeleteShapeAndTypeList(TF_ShapeAndTypeList* shape_list) {
      if (shape_list == nullptr) return;
      for (size_t i = 0; i < shape_list->num_items; ++i) {
        delete[] shape_list->items[i].dims;
      }
      delete[] shape_list->items;
      delete shape_list;
    }
    
    void TF_DeleteShapeAndTypeListArray(TF_ShapeAndTypeList** shape_list_array,
                                        int num_items) {
    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)
  10. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

          tf_posix_filesystem::NewReadOnlyMemoryRegionFromFile;
      ops->filesystem_ops->create_dir = tf_posix_filesystem::CreateDir;
      ops->filesystem_ops->delete_file = tf_posix_filesystem::DeleteFile;
      ops->filesystem_ops->delete_dir = tf_posix_filesystem::DeleteDir;
      ops->filesystem_ops->rename_file = tf_posix_filesystem::RenameFile;
      ops->filesystem_ops->copy_file = tf_posix_filesystem::CopyFile;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
Back to top