- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 171 for if (0.33 sec)
-
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
Status status = env_->NewWritableFile(filepath, &new_file); if (!status.ok()) GTEST_SKIP() << "NewWritableFile() not supported: " << status; const std::string test_data("asdf"); status = new_file->Append(test_data); if (!status.ok()) GTEST_SKIP() << "Append() not supported: " << status; status = new_file->Flush(); if (!status.ok()) GTEST_SKIP() << "Flush() not supported: " << status;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:25:58 GMT 2022 - 71K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc
// Perform this action in a cleanup callback to avoid locking mu_ after // locking block->mu. if (downloaded_block) { absl::MutexLock l(&mu_); // Do not update state if the block is already to be evicted. if (block->timestamp != 0) { // Use capacity() instead of size() to account for all memory // used by the cache.
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Jul 16 01:39:09 GMT 2020 - 11.1K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem.cc
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 23.1K bytes - Viewed (0) -
tensorflow/c/checkpoint_reader.cc
tensorflow::TensorShape shape; status = v2_reader_->LookupDtypeAndShape(name, &dtype, &shape); if (status.ok()) { out_tensor->reset(new Tensor(dtype, shape)); status = v2_reader_->Lookup(name, out_tensor->get()); if (!status.ok()) out_tensor->reset(); } } if (!status.ok()) { tsl::Set_TF_Status_from_Status(out_status, status); } }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Aug 25 21:29:12 GMT 2023 - 5.5K bytes - Viewed (0) -
tensorflow/c/c_api_internal.h
// Set the shapes and types of the output's handle. // // The lengths of the arrays pointed to by `shapes`, `ranks`, and `types` must // all be equal to `num_shapes_and_types`. If `ranks[i] != -1`, (i.e., if the // rank is known), then it must be equal to the length of `shapes[i]`; if // `ranks[i] == 1`, then `shapes[i]` may be nullptr. // // TODO(akshayka): Implement a corresponding getter method.
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) -
.github/workflows/arm-ci.yml
jobs: build: # Don't do this in forks, and if labeled, only for 'kokoro:force-run' if: github.repository == 'tensorflow/tensorflow' && (github.event.action != 'labeled' || (github.event.action == 'labeled' && github.event.label.name == 'kokoro:force-run')) runs-on: [self-hosted, linux, ARM64] strategy: matrix: pyver: ['3.10'] steps: - name: Stop old running containers (if any) shell: bash run: |
Others - Registered: Tue May 07 12:40:20 GMT 2024 - Last Modified: Wed Feb 07 17:41:21 GMT 2024 - 2.2K bytes - Viewed (0) -
tensorflow/c/eager/c_api_debug.cc
std::vector<int64_t> shape; int rank = -1; *status = handle.NumDims(&rank); if (!status->ok()) { return shape; } shape.reserve(rank); for (int i = 0; i < rank; ++i) { int64_t dim; *status = handle.Dim(i, &dim); if (!status->ok()) { return shape; } shape.push_back(dim); } return shape; } } // namespace
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Aug 11 01:20:50 GMT 2021 - 2.5K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/tflite-other.md
placeholder: e.g., 3.9 validations: required: false - type: input id: Bazel attributes: label: Bazel version description: if compiling from source placeholder: validations: required: false - type: input id: Compiler attributes: label: GCC/Compiler version description: if compiling from source placeholder: validations: required: false - type: input id: Cuda attributes: label: CUDA/cuDNN version description:
Plain Text - Registered: Tue May 07 12:40:20 GMT 2024 - Last Modified: Thu Dec 29 22:28:29 GMT 2022 - 3.4K bytes - Viewed (1) -
tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc
size_t chunk = size - offset; if (chunk > kPosixCopyFileBufferSize) chunk = kPosixCopyFileBufferSize; rc = read(src_fd, buffer.get(), chunk); if (rc < 0) return -1; int total_write = 0; int total_read = rc; while (total_write < total_read && rc > 0) { rc = write(dst_fd, buffer.get() + total_write, chunk - total_write); if (rc < 0) return -1; total_write += rc;
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) -
tensorflow/c/c_op_requires.h
} \ } while (0) #define TF_CLEANUP_AND_RETURN_IF_ERROR(C_STATUS, BUFFER, __VA_ARGS__) \ do { \ ::tensorflow::Status _s(__VA_ARGS__); \ if (TF_PREDICT_TRUE(!_s.ok())) { \ TF_DeleteStatus(C_STATUS); \
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Aug 02 21:35:06 GMT 2022 - 2.3K bytes - Viewed (0)