BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
|
#include <basic_allocators.h>
Classes | |
struct | rebind |
Public Member Functions | |
T * | allocate (bc::size_t sz) |
![]() | |
template<class U > | |
Allocator (const Allocator< U, device_tag > &) | |
Allocator ()=default | |
T * | allocate (std::size_t sz) const |
void | deallocate (T *data_ptr, std::size_t size) const |
![]() | |
bool | operator== (const Basic_Allocator_Base< U, device_tag > &) const |
bool | operator!= (const Basic_Allocator_Base< U, device_tag > &) const |
Static Public Attributes | |
static constexpr bool | managed_memory = true |
Additional Inherited Members | |
![]() | |
using | system_tag = device_tag |
using | value_type = T |
using | pointer = value_type * |
using | const_pointer = value_type * |
using | size_type = std::size_t |
using | reference = value_type & |
using | const_reference = const value_type & |
using | propagate_on_container_copy_assignment = std::false_type |
using | propagate_on_container_move_assignment = std::false_type |
using | propagate_on_container_swap = std::false_type |
using | is_always_equal = std::true_type |
|
inline |
|
static |