|
TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
Represents a collection of spatial feature data. More...
#include <features.h>
Public Member Functions | |
| int | numChannels () const |
| Number of channels in tensor. More... | |
| Rect | boundingBox () const |
| Bounding box in walktiles. More... | |
| Rect | boundingBoxAtScale () const |
| Bounding box in current scale. More... | |
| template<typename Archive > | |
| void | serialize (Archive &ar) |
Public Attributes | |
| torch::Tensor | tensor |
| Format is [c][y][x]. More... | |
| std::vector< FeatureDescriptor > | desc |
| int | scale |
| Decimation factor wrt walktile resolution. More... | |
| Position | offset |
| [0][0] of tensor corresponds to this point (walktiles) More... | |
Represents a collection of spatial feature data.
| Rect cherrypi::FeatureData::boundingBox | ( | ) | const |
Bounding box in walktiles.
| Rect cherrypi::FeatureData::boundingBoxAtScale | ( | ) | const |
Bounding box in current scale.
| int cherrypi::FeatureData::numChannels | ( | ) | const |
Number of channels in tensor.
|
inline |
| std::vector<FeatureDescriptor> cherrypi::FeatureData::desc |
| Position cherrypi::FeatureData::offset |
[0][0] of tensor corresponds to this point (walktiles)
| int cherrypi::FeatureData::scale |
Decimation factor wrt walktile resolution.
| torch::Tensor cherrypi::FeatureData::tensor |
Format is [c][y][x].
1.8.11