- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for empty (0.15 sec)
-
tensorflow/c/experimental/filesystem/plugins/windows/windows_filesystem.cc
#include "tensorflow/c/experimental/filesystem/filesystem_interface.h" #include "tensorflow/c/tf_status.h" // Implementation of a filesystem for POSIX environments. // This filesystem will support `file://` and empty (local) URI schemes. static void* plugin_memory_allocate(size_t size) { return calloc(1, size); } static void plugin_memory_free(void* ptr) { free(ptr); } // SECTION 1. Implementation for `TF_RandomAccessFile`
C++ - Registered: Tue Apr 09 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:21:15 GMT 2022 - 2.6K bytes - Viewed (0) -
tensorflow/c/c_api.cc
if (!status->status.ok()) return false; } return true; } // Create an empty tensor of type 'dtype'. 'shape' can be arbitrary, but has to // result in a zero-sized tensor. static TF_Tensor* EmptyTensor(TF_DataType dtype, const tensorflow::TensorShape& shape) { static char empty; int64_t nelems = 1; std::vector<int64_t> dims; dims.reserve(shape.dims());
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/eager/dlpack_test.cc
TestHandleFromDLPack(status, ctx, {4, 1, 2}, {2, 0, 1}); TestHandleFromDLPack(status, ctx, {4, 3, 1}, {3, 1, 1}); TestHandleFromDLPack(status, ctx, {4, 3, 1}, {3, 1, 0}); // Test that empty tensors can have any strides. TestHandleFromDLPack(status, ctx, {4, 0, 2}, {0, 2, 1}); TestHandleFromDLPack(status, ctx, {4, 0, 2}, {0, 1, 1}); TestHandleFromDLPack(status, ctx, {4, 0, 2}, {0, 0, 1});
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Jun 30 03:04:46 GMT 2023 - 4.4K bytes - Viewed (0) -
tensorflow/c/c_test_util.cc
const TF_Output* inputs_ptr = inputs_.empty() ? nullptr : &inputs_[0]; TF_Tensor* const* input_values_ptr = input_values_.empty() ? nullptr : &input_values_[0]; const TF_Output* outputs_ptr = outputs_.empty() ? nullptr : &outputs_[0]; TF_Tensor** output_values_ptr = output_values_.empty() ? nullptr : &output_values_[0]; TF_Operation* const* targets_ptr = targets_.empty() ? nullptr : &targets_[0];
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Oct 15 03:16:52 GMT 2021 - 17.8K bytes - Viewed (2) -
tensorflow/c/env_test.cc
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 " << dirpath; TF_DeleteFile(filepath.c_str(), s); ASSERT_TF_OK(s) << "TF_DeleteFile failed for " << filepath << ": "
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) -
tensorflow/c/eager/dlpack.cc
int ndim) { bool valid = true; int64_t expected_stride = 1; for (int i = ndim - 1; i >= 0; --i) { // Empty tensors are always compact regardless of strides. if (shape_arr[i] == 0) return true; // Note that dimensions with size=1 can have any stride. if (shape_arr[i] != 1 && stride_arr[i] != expected_stride) {
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 12.8K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
*object = fname.substr(bucket_end + 1); if (object->empty() && !object_empty_ok) { TF_SetStatus(status, TF_INVALID_ARGUMENT, "GCS path doesn't contain an object name."); } } /// Appends a trailing slash if the name doesn't already have one. static void MaybeAppendSlash(std::string* name) { if (name->empty()) *name = "/"; else if (name->back() != '/')
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) -
tensorflow/c/eager/parallel_device/parallel_device_lib.cc
std::unique_ptr<ParallelTensor> ParallelTensor::FromTensorHandles( const ParallelDevice& parallel_device, std::vector<TensorHandlePtr> components, absl::Span<const int64_t> shape, TF_Status* status) { if (components.empty()) { TF_SetStatus(status, TF_INTERNAL, "No components are provide for creating a ParallelTensor"); return nullptr; } TFE_TensorHandleGetStatus(components[0].get(), status);
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) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc
#include "tensorflow/c/tf_file_statistics.h" #include "tensorflow/c/tf_status.h" // Implementation of a filesystem for POSIX environments. // This filesystem will support `file://` and empty (local) URI schemes. static void* plugin_memory_allocate(size_t size) { return calloc(1, size); } static void plugin_memory_free(void* ptr) { free(ptr); } // SECTION 1. Implementation for `TF_RandomAccessFile`
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) -
tensorflow/c/c_api_experimental.cc
input_index, " out of range for ", op_name); return nullptr; } const tensorflow::OpDef_ArgDef& input_arg = op_def->input_arg()[input_index]; if (input_arg.number_attr().empty()) { status->status = tensorflow::errors::NotFound( op_name, " does not have number_attr() defined."); return nullptr; }
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)