Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Goff (0.12 sec)

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

    //
    // This method uses a temporary buffer to hold contents.
    int CopyFileContents(int dst_fd, int src_fd, off_t size) {
      // Use a copy buffer of 128KB but don't store it on the stack.
      constexpr static size_t kPosixCopyFileBufferSize = 128 * 1024;
      std::unique_ptr<char[]> buffer(new char[kPosixCopyFileBufferSize]);
    
      off_t offset = 0;
      int bytes_transferred = 0;
      int rc = 1;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_internal.h

    #define TENSORFLOW_C_C_API_INTERNAL_H_
    
    #include <list>
    #include <set>
    #include <string>
    #include <unordered_map>
    #include <vector>
    
    #include "tensorflow/c/c_api.h"
    
    // clang-format off
    // Required for IS_MOBILE_PLATFORM
    #include "tensorflow/core/platform/platform.h"
    // clang-format on
    
    #include "tensorflow/c/tf_status_internal.h"
    #include "tensorflow/c/tf_tensor_internal.h"
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sat May 13 00:49:12 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

        TF_SetStatus(status, TF_OK, "");
        return n;
      };
      tf_gcs_filesystem::RamFileBlockCache cache(block_size, block_size, 0,
                                                 fetcher);
      // Fork off thread for parallel read.
      std::unique_ptr<Thread> concurrent(
          Env::Default()->StartThread({}, "concurrent", [block_size, &cache] {
            std::vector<char> 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)
  4. tensorflow/c/eager/c_api_test.cc

    ==============================================================================*/
    
    #include "tensorflow/c/eager/c_api.h"
    
    #include <string.h>
    
    #include <memory>
    #include <string>
    
    // clang-format off
    #include "tensorflow/core/framework/attr_value.pb.h"
    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/platform/platform.h"
    // clang-format on
    
    #include "absl/strings/match.h"
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  5. configure.cmd

    :: WARRANTIES OR CONDITIONS OF ANY KIND< either express or implied.  See the
    :: License for the specific language governing permissions and limitations under
    :: the License.
    
    @echo off
    
    set configure_dir=%~dp0
    set configure_dir=%configure_dir:~0,-1%
    python "%configure_dir%\configure.py" %* || ( exit /b )
    Batch File
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Aug 11 09:27:42 GMT 2020
    - 782 bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc

    #include <unistd.h>
    
    #include "tensorflow/c/experimental/filesystem/plugins/posix/copy_file.h"
    
    namespace tf_posix_filesystem {
    
    int TransferFileContents(const char* src, const char* dst, mode_t mode,
                             off_t size) {
      int src_fd = open(src, O_RDONLY);
      if (src_fd < 0) return -1;
    
      // When creating file, use the same permissions as original
      mode_t open_mode = mode & (S_IRWXU | S_IRWXG | S_IRWXO);
    
    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/experimental/grappler/grappler.h

    typedef enum TF_TriState {
      TF_TriState_Default = 0,
      TF_TriState_Off,
      TF_TriState_On,
    } TF_TriState;
    
    // TF_GrapplerItem represents a combination of a graph, one of more fetch nodes,
    // and potentially a set of nodes to feed.
    typedef struct TF_GrapplerItem TF_GrapplerItem;
    
    // Flags indicating whether existing optimizers should be turned off.
    // It's optional for plugin to set functions to return true/false. If not
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Aug 03 18:08:43 GMT 2022
    - 12.5K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/grappler/grappler.cc

      return absl::OkStatus();
    }
    
    #define CONFIG_TOGGLE(optimizer)                             \
      if (tp_configs.optimizer == TF_TriState_Off)               \
        configs.toggle_config[#optimizer] = RewriterConfig::OFF; \
      else                                                       \
        configs.toggle_config[#optimizer] = RewriterConfig::ON;
    
    void CGraphOptimizerRegister(
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  9. tensorflow/c/eager/c_api_experimental.h

    // tf.device("CUSTOM"):` from Python if `device_name` for this call is
    // "/job:localhost/replica:0/task:0/device:CUSTOM:0".
    //
    // The custom device defines copy operations for moving TensorHandles on and
    // off, and an execution operation for named operations. Often execution will
    // simply wrap op execution on one or more physical devices.
    //
    // device_info is an opaque caller-defined type stored with the custom device
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_linux.cc

    namespace tf_posix_filesystem {
    
    // Transfers up to `size` bytes from `dst_fd` to `src_fd`.
    //
    // This method uses `sendfile` specific to linux after 2.6.33.
    int CopyFileContents(int dst_fd, int src_fd, off_t size) {
      off_t offset = 0;
      int bytes_transferred = 0;
      int rc = 1;
      // When `sendfile` returns 0 we stop copying and let callers handle this.
      while (offset < size && rc > 0) {
        // Use uint64 for safe compare SSIZE_MAX
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.5K bytes
    - Viewed (0)
Back to top