- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 300 for CAST (0.15 sec)
-
tensorflow/c/experimental/next_pluggable_device/c_api.cc
TF_OpKernelContext* ctx) { auto* cc_ctx = reinterpret_cast<tensorflow::OpKernelContext*>(ctx); return reinterpret_cast<TF_CoordinationServiceAgent*>( cc_ctx->coordination_service_agent()); } bool TF_CoordinationServiceIsInitialized(TF_CoordinationServiceAgent* agent) { if (agent == nullptr) return false; auto* cc_agent = reinterpret_cast<tsl::CoordinationServiceAgent*>(agent); return cc_agent->IsInitialized();
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) -
tensorflow/c/eager/custom_device_testutil.cc
return TFE_TensorHandleDim(reinterpret_cast<LoggedTensor*>(data)->tensor, dim_index, status); } int LoggedTensorNumDims(void* data, TF_Status* status) { return TFE_TensorHandleNumDims(reinterpret_cast<LoggedTensor*>(data)->tensor, status); } void LoggedTensorDeallocator(void* data) { delete reinterpret_cast<LoggedTensor*>(data); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Mar 03 20:47:31 GMT 2021 - 8.3K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler.cc
reinterpret_cast<const tensorflow::grappler::GrapplerItem*>(item)->fetch; const int len = std::min(num_values, static_cast<int>(nodes.size())); char* p = static_cast<char*>(storage); for (int index = 0; index < len; ++index) { const std::string& s = nodes[index]; values[index] = p; lengths[index] = s.size(); if ((p + s.size()) > (static_cast<char*>(storage) + storage_size)) {
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/experimental/filesystem/plugins/posix/posix_filesystem.cc
static void Cleanup(TF_WritableFile* file) { auto posix_file = static_cast<PosixFile*>(file->plugin_file); plugin_memory_free(const_cast<char*>(posix_file->filename)); delete posix_file; } static void Append(const TF_WritableFile* file, const char* buffer, size_t n, TF_Status* status) { auto posix_file = static_cast<PosixFile*>(file->plugin_file);
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/eager/c_api_unified_experimental_eager.cc
if (TF_GetCode(s) != TF_OK) { return nullptr; } return wrap(static_cast<AbstractContext*>(unwrap(c_ctx))); } TF_AbstractTensor* TF_CreateAbstractTensorFromEagerTensor(TFE_TensorHandle* t, TF_Status* s) { return wrap(static_cast<AbstractTensorHandle*>(unwrap(t))); } TFE_TensorHandle* TF_AbstractTensorGetEagerTensor(TF_AbstractTensor* at,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jun 25 04:40:46 GMT 2020 - 3.2K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
TEST(CAPI, DataTypeEnum) { EXPECT_EQ(TF_FLOAT, static_cast<TF_DataType>(tensorflow::DT_FLOAT)); EXPECT_EQ(TF_DOUBLE, static_cast<TF_DataType>(tensorflow::DT_DOUBLE)); EXPECT_EQ(TF_INT32, static_cast<TF_DataType>(tensorflow::DT_INT32)); EXPECT_EQ(TF_UINT8, static_cast<TF_DataType>(tensorflow::DT_UINT8)); EXPECT_EQ(TF_INT16, static_cast<TF_DataType>(tensorflow::DT_INT16)); EXPECT_EQ(TF_INT8, static_cast<TF_DataType>(tensorflow::DT_INT8));
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3) -
android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java
Class<? extends T> type = entry.getKey(); T value = entry.getValue(); mapBuilder.put(type, cast(type, value)); } return this; } private static <T> T cast(Class<T> type, Object value) { return Primitives.wrap(type).cast(value); } /** * Returns a new immutable class-to-instance map containing the entries provided to this * builder.
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed May 10 21:56:03 GMT 2023 - 7.1K bytes - Viewed (0) -
src/main/java/jcifs/pac/ASN1Util.java
* @param object * @return object cast to type * @throws PACDecodingException */ public static <T> T as ( Class<T> type, Object object ) throws PACDecodingException { if ( !type.isInstance(object) ) { throw new PACDecodingException("Incompatible object types " + type + " " + object.getClass()); } return type.cast(object); } /** *
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Mon Oct 02 12:02:06 GMT 2023 - 6.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental.cc
Status status = tensorflow::PartialTensorShape::MakePartialShape( reinterpret_cast<int64_t*>(shape.dim_sizes), shape.num_dims, &partial_shape); if (!status.ok()) { tsl::Set_TF_Status_from_Status(s, status); return nullptr; } } tsl::Set_TF_Status_from_Status( s, tracing_ctx->AddParameter(static_cast<DataType>(dtype), partial_shape, &t));
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java
return cast(type, put(type, value)); } @Override @CheckForNull public <T extends @NonNull B> T getInstance(Class<T> type) { return cast(type, get(type)); } @CanIgnoreReturnValue @CheckForNull private static <T> T cast(Class<T> type, @CheckForNull Object value) { return Primitives.wrap(type).cast(value); } private Object writeReplace() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 6.9K bytes - Viewed (0)