Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for casa (0.14 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

    static void Cleanup(TF_WritableFile* file) {
      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
      plugin_memory_free(const_cast<char*>(posix_file->filename));
      delete posix_file;
    }
    
    static void Append(const TF_WritableFile* file, const char* buffer, size_t n,
                       TF_Status* status) {
      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
    
    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)
  2. tensorflow/c/c_api_experimental.cc

      flags->tf_xla_cpu_global_jit = static_cast<bool>(enable);
      return static_cast<unsigned char>(original);
    }
    
    void TF_SetXlaAutoJitMode(const char* mode) {
      tensorflow::SetXlaAutoJitFlagFromFlagString(mode);
    }
    
    unsigned char TF_GetXlaAutoJitEnabled() {
      tensorflow::XlaAutoJitFlag flag =
          tensorflow::GetMarkForCompilationPassFlags()->xla_auto_jit_flag;
    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)
  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);
      return cc_agent->IsInitialized();
    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/custom_device_testutil.cc

      return TFE_TensorHandleDim(reinterpret_cast<LoggedTensor*>(data)->tensor,
                                 dim_index, status);
    }
    
    int LoggedTensorNumDims(void* data, TF_Status* status) {
      return TFE_TensorHandleNumDims(reinterpret_cast<LoggedTensor*>(data)->tensor,
                                     status);
    }
    
    void LoggedTensorDeallocator(void* data) {
      delete reinterpret_cast<LoggedTensor*>(data);
    }
    
    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)
  5. tensorflow/c/experimental/grappler/grappler_test.cc

        EXPECT_EQ(nodes_preserved.find(string(static_cast<const char*>(values[i]),
                                              lens[i])) != nodes_preserved.end(),
                  true);
      }
      TF_DeleteStatus(status);
    }
    
    TEST(TF_GrapplerItem, FetchNodes) {
      GrapplerItem item;
      item.fetch = std::vector<string>{"Conv", "BiasAdd"};
      TF_GrapplerItem* c_item = reinterpret_cast<TF_GrapplerItem*>(&item);
    
      int list_total_size = 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)
  6. 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 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

      if (!status.ok()) {
        CHECK_OK(pjrt::SetPjrtApi(DEVICE_CPU, GetPjrtApi()));
      }
      auto pjrt_client = xla::GetCApiClient(DEVICE_CPU);
      CHECK_OK(pjrt_client.status());
      auto c_api_client = down_cast<xla::PjRtCApiClient*>(pjrt_client->get());
      std::vector<int32_t> data(1, 0);
      xla::Shape shape = xla::ShapeUtil::MakeShape(xla::S32, {1});
    
      auto buffer = c_api_client->pjrt_c_client()->client->BufferFromHostBuffer(
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      ASSERT_EQ(read, -1) << "Read: " << read;
      ASSERT_EQ(TF_GetCode(status_), TF_NOT_FOUND) << TF_Message(status_);
      TF_SetStatus(status_, TF_OK, "");
    
      auto gcs_file =
          static_cast<tf_gcs_filesystem::GCSFile*>(filesystem_->plugin_filesystem);
      ASSERT_TRUE(WriteToServer(filepath, 0, content_view.length(),
                                &gcs_file->gcs_client, status_));
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  9. tensorflow/c/eager/gradients_test.cc

                       /*raw_device_name=*/nullptr, &forward_op);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
      if (isa<TracingOperation>(check_numerics_op.get())) {
        s = dyn_cast<TracingOperation>(check_numerics_op.get())
                ->SetOpName("check_numerics");
        ASSERT_EQ(errors::OK, s.code()) << s.message();
      }
      s = AddInput(check_numerics_op.get(), t.get(), &forward_op);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_distributed_test.cc

                      .ok());
      ASSERT_TRUE(worker_server2->Start().ok());
    
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(/*enable=*/true));
      TFE_ContextOptionsSetDevicePlacementPolicy(opts, TFE_DEVICE_PLACEMENT_SILENT);
      TFE_Context* ctx = TFE_NewContext(opts, status);
      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    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)
Back to top