Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for mime (0.17 sec)

  1. tensorflow/c/env.cc

      ::tensorflow::Status s =
          ::tensorflow::Env::Default()->Stat(filename, &cc_stats);
      ::tensorflow::Set_TF_Status_from_Status(status, s);
      if (s.ok()) {
        stats->length = cc_stats.length;
        stats->mtime_nsec = cc_stats.mtime_nsec;
        stats->is_directory = cc_stats.is_directory;
      }
    }
    
    void TF_NewWritableFile(const char* filename, TF_WritableFileHandle** handle,
                            TF_Status* status) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  2. tensorflow/c/env_test.cc

        TF_StringStreamDone(children);
    
        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 "
    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)
  3. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      struct stat sbuf;
      if (stat(path, &sbuf) != 0) {
        TF_SetStatusFromIOError(status, errno, path);
      } else {
        stats->length = sbuf.st_size;
        stats->mtime_nsec = sbuf.st_mtime * (1000 * 1000 * 1000);
        stats->is_directory = S_ISDIR(sbuf.st_mode);
        TF_SetStatus(status, TF_OK, "");
      }
    }
    
    static int GetChildren(const TF_Filesystem* filesystem, const char* path,
    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)
  4. tensorflow/c/c_api_experimental.cc

    // function.
    //
    // If `library_filename` has already been loaded, we return a cached handle.
    // Device and Kernels/Ops are registered as globals when a library is loaded
    // for the first time.
    TF_Library* TF_LoadPluggableDeviceLibrary(const char* library_filename,
                                              TF_Status* status) {
    #if defined(IS_MOBILE_PLATFORM) || defined(IS_SLIM_BUILD)
    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)
  5. tensorflow/c/experimental/next_pluggable_device/c_api.cc

    #include <memory>
    #include <string>
    #include <string_view>
    #include <utility>
    #include <vector>
    
    #include "absl/status/status.h"
    #include "absl/status/statusor.h"
    #include "absl/strings/str_cat.h"
    #include "absl/time/time.h"
    #include "absl/types/span.h"
    #include "tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.h"
    #include "tensorflow/c/kernels.h"
    #include "tensorflow/c/kernels_experimental.h"
    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)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

      void operator()(TFE_Executor* to_delete) const {
        TFE_DeleteExecutor(to_delete);
      }
    };
    
    using ExecutorPtr = std::unique_ptr<TFE_Executor, ExecutorDeleter>;
    
    }  // namespace
    
    // Allows a single op at a time to be launched without blocking.
    //
    // DeviceThread itself is thread-safe, in that StartExecute will block if there
    // is a pending execution. Since StartExecute is equivalent to grabbing a lock,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      stat->base.length = metadata->size();
      stat->base.mtime_nsec =
          metadata->time_storage_class_updated().time_since_epoch().count();
      stat->base.is_directory = object.back() == '/';
      TF_VLog(1,
              "Stat of: gs://%s/%s --  length: %u generation: %u; mtime_nsec: %u;",
              bucket.c_str(), object.c_str(), stat->base.length,
              stat->generation_number, stat->base.mtime_nsec);
      return TF_SetStatus(status, TF_OK, "");
    }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_experimental.cc

    #include "tensorflow/c/eager/c_api_experimental.h"
    
    #include <cstdint>
    #include <memory>
    #include <utility>
    #include <vector>
    
    #include "absl/container/flat_hash_map.h"
    #include "absl/strings/match.h"
    #include "absl/time/time.h"
    #include "tensorflow/c/c_api.h"
    #include "tensorflow/c/eager/c_api_internal.h"
    #include "tensorflow/c/eager/tfe_context_internal.h"
    #include "tensorflow/c/eager/tfe_op_internal.h"
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      // Execute the first read to load the block.
      TF_EXPECT_OK(ReadCache(&cache1, "", 0, 1, &out));
      EXPECT_EQ(calls, 1);
      // Now advance the clock one second at a time and redo the read. The call
      // count should advance every 3 seconds (i.e. every time the staleness is
      // greater than 2).
      for (int i = 1; i <= 10; i++) {
        env->SetNowSeconds(i + 1);
        TF_EXPECT_OK(ReadCache(&cache1, "", 0, 1, &out));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      ops_->stat(filesystem_.get(), translated_name.c_str(), &stats,
                 plugin_status.get());
    
      if (TF_GetCode(plugin_status.get()) == TF_OK) {
        stat->length = stats.length;
        stat->mtime_nsec = stats.mtime_nsec;
        stat->is_directory = stats.is_directory;
      }
    
      return StatusFromTF_Status(plugin_status.get());
    }
    
    Status ModularFileSystem::IsDirectory(const std::string& name,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
Back to top