Use the new layer info data in the simulator.
This commit is contained in:
@@ -20,17 +20,7 @@ namespace fmri
|
||||
class LayerData
|
||||
{
|
||||
public:
|
||||
enum class Type
|
||||
{
|
||||
Input,
|
||||
Convolutional,
|
||||
ReLU,
|
||||
Pooling,
|
||||
Output,
|
||||
Other
|
||||
};
|
||||
|
||||
LayerData(const string &name, const vector<int> &shape, const DType *data, Type type);
|
||||
LayerData(const string &name, const vector<int> &shape, const DType *data);
|
||||
LayerData(const LayerData &) = delete;
|
||||
|
||||
LayerData(LayerData &&) = default;
|
||||
@@ -38,18 +28,13 @@ namespace fmri
|
||||
LayerData &operator=(LayerData &&) = default;
|
||||
|
||||
const string &name() const;
|
||||
Type type() const;
|
||||
const vector<int> &shape() const;
|
||||
DType const *data() const;
|
||||
size_t numEntries() const;
|
||||
|
||||
static Type typeFromString(string_view name);
|
||||
|
||||
private:
|
||||
string name_;
|
||||
vector<int> shape_;
|
||||
unique_ptr<DType[]> data_;
|
||||
Type type_;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user