TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | Public Attributes | List of all members
cherrypi::FeatureData Struct Reference

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< FeatureDescriptordesc
 
int scale
 Decimation factor wrt walktile resolution. More...
 
Position offset
 [0][0] of tensor corresponds to this point (walktiles) More...
 

Detailed Description

Represents a collection of spatial feature data.

Member Function Documentation

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.

template<typename Archive >
void cherrypi::FeatureData::serialize ( Archive &  ar)
inline

Member Data Documentation

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].


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