-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
309 additions
and
205 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-376 KB
(80%)
build/CMakeFiles/sita.dir/src/sita/stuff/operators/add_op.cpp.o
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// Created by cs on 02/08/18. | ||
// | ||
|
||
#ifndef SITA_STUFF_DATA_TEST_OP_H | ||
#define SITA_STUFF_DATA_TEST_OP_H | ||
#include <string> | ||
#include <vector> | ||
#include "sita/stuff/operator.h" | ||
#include "sita/stuff/registry.h" | ||
namespace sita{ | ||
|
||
template<typename Dtype> | ||
class DataTestOp: public Operator<Dtype>{ | ||
public: | ||
DataTestOp(const OperatorDef& opdef, GlobalWorkSpace<Dtype> *gws):Operator<Dtype>(opdef,gws){ | ||
if(_has_param){ | ||
_filler = opdef.param.filler; | ||
} | ||
_data_test_op_param = opdef.param.data_test_op_param; | ||
} | ||
~DataTestOp(){}; | ||
void init(); | ||
void forward(); | ||
void backward(); | ||
bool inline has_param(){ return _has_param;} | ||
|
||
protected: | ||
bool _has_param = false; | ||
Filler _filler; | ||
AddOpParameter _data_op_param; | ||
std::vector<std::string> _inputs; | ||
std::vector<std::string> _outputs; | ||
|
||
}; | ||
}//namespace | ||
|
||
|
||
|
||
#endif //SITA_DATA_TEST_OP_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// | ||
// Created by cs on 02/08/18. | ||
// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters