- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for Case (0.15 sec)
-
tensorflow/c/c_api.cc
SINGLE_CASE(kF, TF_ATTR_FLOAT, -1); SINGLE_CASE(kB, TF_ATTR_BOOL, -1); SINGLE_CASE(kType, TF_ATTR_TYPE, -1); SINGLE_CASE(kShape, TF_ATTR_SHAPE, attr->shape().unknown_rank() ? -1 : attr->shape().dim_size()); SINGLE_CASE(kTensor, TF_ATTR_TENSOR, -1); #undef SINGLE_CASE case tensorflow::AttrValue::kList: metadata.is_list = 1; metadata.list_size = 0;
C++ - Registered: Tue Apr 16 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/eager/dlpack.cc
switch (data_type) { case TF_DataType::TF_BOOL: dtype.code = DLDataTypeCode::kDLBool; break; case TF_DataType::TF_HALF: case TF_DataType::TF_FLOAT: case TF_DataType::TF_DOUBLE: dtype.code = DLDataTypeCode::kDLFloat; break; case TF_DataType::TF_INT8: case TF_DataType::TF_INT16: case TF_DataType::TF_INT32: case TF_DataType::TF_INT64:
C++ - Registered: Tue Apr 16 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 12.8K bytes - Viewed (0) -
tensorflow/c/eager/custom_device_test.cc
status.get()), TFE_DeleteTensorHandle); ASSERT_TRUE(arrived); ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get()); // Base case: two CPU inputs executes fine. std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> matmul( MatMulOp(context.get(), hcpu.get(), hcpu.get()), TFE_DeleteOp); TFE_TensorHandle* retval; int num_retvals = 1;
C++ - Registered: Tue Apr 16 12:39:09 GMT 2024 - Last Modified: Thu Aug 27 23:39:24 GMT 2020 - 18.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
switch (default_value.value_case()) { case tensorflow::AttrValue::kS: { const string& v = default_value.s(); TFE_OpSetAttrString(op, attr_name, v.data(), v.size()); break; } case tensorflow::AttrValue::kI: TFE_OpSetAttrInt(op, attr_name, static_cast<int64_t>(default_value.i())); break; case tensorflow::AttrValue::kF:
C++ - Registered: Tue Apr 16 12:39:09 GMT 2024 - Last Modified: Tue Mar 12 20:00:09 GMT 2024 - 43.9K bytes - Viewed (2) -
tensorflow/c/experimental/grappler/grappler.cc
See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ // This file extends/implements core graph optimizer base classes in terms of // the C API defined in grappler.h. A class "CSomething" represents a // "Something" that can be manipulated via calls in the C interface and a C // struct called "TP_Something".
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 15K bytes - Viewed (1) -
tensorflow/c/eager/parallel_device/parallel_device_lib.cc
++device_index) { DeviceThread* device_thread = device_threads_[device_index].get(); per_device_output_tensors.push_back(device_thread->Join(status)); // We will run every Join even if there are bad statuses in case the user // wants to recover and continue running ops on the parallel device (which // would otherwise deadlock). if (TF_GetCode(status) != TF_OK && (first_bad_status == nullptr
C++ - Registered: Tue Apr 16 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
const char* dst, TF_Status* status) { // If target is a directory return TF_FAILED_PRECONDITION. // Target might be missing, so don't error in that case. struct stat st; if (stat(dst, &st) != 0) { if (errno != ENOENT) { TF_SetStatusFromIOError(status, errno, dst); return; } } else if (S_ISDIR(st.st_mode)) {
C++ - Registered: Tue Apr 09 12:39:09 GMT 2024 - Last Modified: Sun Mar 24 20:08:23 GMT 2024 - 15.8K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc
} block->cond_var.SignalAll(); return; case FetchState::FETCHING: block->cond_var.WaitWithTimeout(&block->mu, absl::Minutes(1)); if (block->state == FetchState::FINISHED) { return TF_SetStatus(status, TF_OK, ""); } // Re-loop in case of errors. break; case FetchState::FINISHED: return TF_SetStatus(status, TF_OK, ""); } }
C++ - Registered: Tue Apr 16 12:39:09 GMT 2024 - Last Modified: Thu Jul 16 01:39:09 GMT 2020 - 11.1K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc
ASSERT_TF_OK(status_); const std::string base = GetURIForPath("GetChildren"); tf_gcs_filesystem::CreateDir(filesystem_, base.c_str(), status_); EXPECT_TF_OK(status_); const std::string file = io::JoinPath(base, "TestFile.csv"); WriteString(file, "test"); EXPECT_TF_OK(status_); const std::string subdir = io::JoinPath(base, "SubDir");
C++ - Registered: Tue Apr 16 12:39:09 GMT 2024 - Last Modified: Mon Aug 31 12:04:23 GMT 2020 - 24.9K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
// scheduled on that same threadpool, causing a deadlock in cases where the // caller of event_mgr->ThenExecute() blocks on the completion of the callback // (as in the case of ConstOp kernel creation on GPU, which involves copying a // CPU tensor to GPU). // Setting a larger thread pool does not help with the Swift caller, as we use
C++ - Registered: Tue Apr 16 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 29.4K bytes - Viewed (0)