- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for static_cast (0.08 sec)
-
tensorflow/c/c_api_experimental.cc
namespace { typedef std::unique_ptr<TF_Function, decltype(&TF_DeleteFunction)> UniqueFuncPtr; } // struct TF_Operation { tensorflow::Node node; }; static TF_Operation* ToTF_Operation(Node* node) { return static_cast<TF_Operation*>(static_cast<void*>(node)); } void TF_EnableXLACompilation(TF_SessionOptions* options, unsigned char enable) { tensorflow::ConfigProto& config = options->options.config; auto* optimizer_options =
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 29.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental.cc
delete counter; } TFE_MonitoringCounterCell* TFE_MonitoringGetCellCounter0( TFE_MonitoringCounter0* counter) { return static_cast<TFE_MonitoringCounterCell*>( static_cast<void*>(counter->counter->GetCell())); } TFE_MonitoringCounter1* TFE_MonitoringNewCounter1(const char* name, TF_Status* status,
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 35.9K bytes - Viewed (0) -
tensorflow/c/eager/dlpack_test.cc
} else { EXPECT_EQ(dltensor_out->strides[i], dltensor_out->shape[i + 1] * dltensor_out->strides[i + 1]); } } } const float* data_in = static_cast<const float*>(dltensor_in->data); const float* data_out = static_cast<const float*>(dltensor_out->data); for (size_t j = 0; j < num_elements; ++j) { EXPECT_EQ(data_out[j], data_in[j]); } TFE_CallDLManagedTensorDeleter(dlm_out);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Fri Jun 30 03:04:46 UTC 2023 - 4.4K 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));
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
for (int i = 0; i < num_dims; ++i) { dimvec[i] = static_cast<int64_t>(dims[i]); } // TODO(apassos) do we need to wrap the deallocator here to make sure to sync // the device? TF_ManagedBuffer* buf = new TF_ManagedBuffer(data, len, deallocator, deallocator_arg, /*owns_memory=*/false); tensorflow::Tensor t(static_cast<tensorflow::DataType>(dtype),
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 43.9K bytes - Viewed (0) -
tensorflow/c/eager/dlpack.cc
dlm_tensor->dl_tensor.byte_offset = 0; // TF doesn't handle the strides and byte_offsets here return static_cast<void*>(dlm_tensor); } TFE_TensorHandle* TFE_HandleFromDLPack(void* dlm, TF_Status* status, TFE_Context* ctx) { DLManagedTensor* dlmt = static_cast<DLManagedTensor*>(dlm); DLTensor* dl_tensor = &dlmt->dl_tensor; absl::optional<std::string> device_name =
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 12.9K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental.cc
void TF_AbstractOpSetAttrType(TF_AbstractOp* op, const char* const attr_name, TF_DataType value, TF_Status* s) { Status status = unwrap(op)->SetAttrType(attr_name, static_cast<DataType>(value)); TF_SetStatus(s, static_cast<TF_Code>(status.code()), absl::StatusMessageAsCStr(status)); } void TF_ExecuteOperation(TF_AbstractOp* op, int num_inputs,
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 9K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_graph.cc
for (int i = 0; i < num_values; ++i) { op_->colocation_constraints.emplace(static_cast<const char*>(values[i]), lengths[i]); } } else { std::vector<tensorflow::StringPiece> v; v.reserve(num_values); for (int i = 0; i < num_values; ++i) { v.emplace_back(static_cast<const char*>(values[i]), lengths[i]); }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 15.7K bytes - Viewed (0) -
tensorflow/c/c_api.cc
// New Graph and Session API // Helper functions ----------------------------------------------------------- namespace { TF_Operation* ToOperation(Node* node) { return static_cast<TF_Operation*>(static_cast<void*>(node)); } string OutputName(const TF_Output& output) { return StrCat(output.oper->node.name(), ":", output.index); } const tensorflow::AttrValue* GetAttrValue(TF_Operation* oper,
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_cluster_test.cc
.ok()); ASSERT_TRUE(worker_server->Start().ok()); TF_Status* status = TF_NewStatus(); TFE_ContextOptions* opts = TFE_NewContextOptions(); TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(async)); TFE_ContextOptionsSetDevicePlacementPolicy(opts, TFE_DEVICE_PLACEMENT_SILENT); TFE_Context* ctx = TFE_NewContext(opts, status); EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 19.2K bytes - Viewed (0)