Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for reinterpret (0.23 sec)

  1. tensorflow/c/experimental/grappler/grappler.cc

    TF_GraphProperties* TF_NewGraphProperties(const TF_GrapplerItem* item) {
      return reinterpret_cast<TF_GraphProperties*>(
          new tensorflow::grappler::GraphProperties(
              *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);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  2. tensorflow/c/env.cc

      ::tensorflow::Set_TF_Status_from_Status(status, s);
    
      if (s.ok()) {
        *handle = reinterpret_cast<TF_WritableFileHandle*>(f.release());
      }
    }
    
    void TF_CloseWritableFile(TF_WritableFileHandle* handle, TF_Status* status) {
      auto* cc_file = reinterpret_cast<::tensorflow::WritableFile*>(handle);
      TF_SetStatus(status, TF_OK, "");
      ::tensorflow::Set_TF_Status_from_Status(status, cc_file->Close());
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/next_pluggable_device/c_api.cc

        TF_OpKernelContext* ctx) {
      auto* cc_ctx = reinterpret_cast<tensorflow::OpKernelContext*>(ctx);
      return reinterpret_cast<TF_CoordinationServiceAgent*>(
          cc_ctx->coordination_service_agent());
    }
    
    bool TF_CoordinationServiceIsInitialized(TF_CoordinationServiceAgent* agent) {
      if (agent == nullptr) return false;
      auto* cc_agent = reinterpret_cast<tsl::CoordinationServiceAgent*>(agent);
    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)
  4. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        if (num_dims == kUnknownRank) {
          return absl::OkStatus();
        }
    
        std::vector<int64_t> dims(num_dims, kUnknownDim);
        TF_GraphGetTensorShape(graph_, output_,
                               reinterpret_cast<int64_t*>(dims.data()), num_dims,
                               &status);
        TF_RETURN_IF_ERROR(StatusFromTF_Status(&status));
        TF_RETURN_IF_ERROR(tensorflow::TensorShapeUtils::MakeShape(dims, shape));
    
    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)
  5. tensorflow/c/eager/parallel_device/parallel_device.cc

    void ParallelTensorDeallocator(void* data) {
      delete reinterpret_cast<ParallelTensor*>(data);
    }
    
    // Used as an argument to TFE_NewCustomDeviceTensorHandle, for computing the
    // number of dimensions of a parallel tensor.
    int ParallelTensorNumDims(void* data, TF_Status* status) {
      const std::vector<int64_t>* shape;
      Status s = reinterpret_cast<ParallelTensor*>(data)->Shape(&shape);
      if (!s.ok()) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/grappler/grappler_test.cc

    TEST(TF_GrapplerItem, NodesToPreserve) {
      GrapplerItem item;
      item.fetch = std::vector<string>{"Conv", "BiasAdd"};
      std::unordered_set<string> nodes_preserved = item.NodesToPreserve();
      TF_GrapplerItem* c_item = reinterpret_cast<TF_GrapplerItem*>(&item);
    
      int list_total_size = 0;
      for (const string& s : nodes_preserved) {
        list_total_size += s.size();
      }
    
      size_t storage_size = 0;
      int num_values = 0;
    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)
  7. tensorflow/c/eager/c_api_unified_experimental.cc

      }
      tensorflow::PartialTensorShape partial_shape;
      if (shape.num_dims != -1) {
        DCHECK(shape.dim_sizes != nullptr);
        Status status = tensorflow::PartialTensorShape::MakePartialShape(
            reinterpret_cast<int64_t*>(shape.dim_sizes), shape.num_dims,
            &partial_shape);
        if (!status.ok()) {
          tsl::Set_TF_Status_from_Status(s, status);
          return nullptr;
        }
      }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api.cc

            methods_.summarize(data_, &c_status), TF_DeleteBuffer);
        if (!c_status.status.ok()) {
          return c_status.status;
        }
        summary = std::string(reinterpret_cast<const char*>(summary_buffer->data),
                              summary_buffer->length);
        return absl::OkStatus();
      }
    
     private:
      void* const data_;
    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)
  9. tensorflow/c/eager/c_api_experimental_test.cc

      TF_Buffer* result1 = TF_NewBuffer();
      TFE_MonitoringSamplerCellValue(cell1, result1);
      tensorflow::HistogramProto histogram1;
      EXPECT_TRUE(histogram1.ParseFromString(
          {reinterpret_cast<const char*>(result1->data), result1->length}));
      EXPECT_EQ(histogram1.sum(), 3.0);
      TF_DeleteBuffer(result1);
      TFE_MonitoringDeleteSampler1(sampler1);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  10. tensorflow/c/eager/abstract_operation.h

      lengths.reserve(values.size());
      for (const auto& s : values) {
        raw_strs.emplace_back(s.data());
        lengths.emplace_back(s.size());
      }
      return SetAttrStringList(attr_name,
                               reinterpret_cast<const void**>(raw_strs.data()),
                               lengths.data(), values.size());
    }
    
    namespace internal {
    struct AbstractOperationDeleter {
      void operator()(AbstractOperation* p) const {
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Jul 14 16:20:41 GMT 2021
    - 6.8K bytes
    - Viewed (0)
Back to top