Fermat
Public Types | Public Methods | Public Members | List of all members
ClusteredRLStorage Struct Reference

Detailed description

Host-side class to handle the storage of a Clustered Reinforcement Learning sampler (Clustered RL).

#include <clustered_rl.h>

Public Types

typedef ClusteredRLView view_type
 

Public Methods

uint64 needed_bytes (const uint32 _hash_size, const uint32 _n_clusters) const
 
void init (const uint32 _hash_size, const uint32 _n_clusters, const uint32 *_cluster_offsets)
 
void resize (const uint32 _hash_size, const uint32 _n_clusters, const uint32 *_cluster_offsets)
 
void update (const float bias=0.1f)
 
void clear ()
 
uint32 size () const
 

Public Members

DeviceHashTable hashmap
 
DomainBuffer< CUDA_BUFFER, float > values
 
uint32 hash_size
 
uint32 n_clusters
 
const uint32 * cluster_offsets
 
uint32 old_hash_size
 

The documentation for this struct was generated from the following file: