-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGPUdefault_policy.h
More file actions
57 lines (39 loc) · 1.27 KB
/
GPUdefault_policy.h
File metadata and controls
57 lines (39 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef GPUPOLICY_H
#define GPUPOLICY_H
#include <vector>
#include <despot/GPUrandom_streams.h>
#include <despot/GPUutil/GPUrandom.h>
#include <despot/GPUcore/GPUhistory.h>
#include <string.h>
#include <queue>
#include <vector>
#include <stdlib.h>
#include <despot/GPUcore/GPUglobals.h>
#include <despot/core/globals.h>
#include <despot/GPUinterface/GPUpomdp.h>
#include <despot/GPUinterface/GPUlower_bound.h>
#include <despot/GPUcore/CudaInclude.h>
namespace despot {
class Dvc_State;
class Dvc_DSPOMDP;
/* =============================================================================
* Dvc_DefaultPolicy class
* =============================================================================*/
class Dvc_DefaultPolicy: public Dvc_ScenarioLowerBound{
public:
DEVICE static Dvc_ValuedAction Value(
Dvc_State* particles,
Dvc_RandomStreams& streams,
Dvc_History& history,
int dummy_startnode);
/**
* Returns default action to perform roll-out.
*
* The function in your custom policy class should be:
* DEVICE static Dvc_ValuedAction Value(Dvc_State* particles,
* Dvc_RandomStreams& streams, Dvc_History& history);
*/
};
DEVICE extern ACT_TYPE (*DvcDefaultPolicyAction_)(int,const Dvc_State* ,Dvc_RandomStreams&, Dvc_History&);
} // namespace despot
#endif