Specifies the descriptor for a RNN model. An example use case: The user first creates a model through createRnnDescriptor. The user queries the size of the underlying opaque parameter buffer. The user creates and initializes a parameter buffer of the proper size. The user runs forward and backward operations using this RNN descriptor. Once a while, user queries maintainable weights and bias regio
| 203 | // compatible and should used in saving and restoring a model. |
| 204 | // * The user releases the RNN descriptor when the model is no longer in use. |
| 205 | class RnnDescriptor { |
| 206 | public: |
| 207 | struct ParamsRegion { |
| 208 | int64 offset; |
| 209 | int64 size; |
| 210 | }; |
| 211 | typedef std::vector<ParamsRegion> ParamsRegions; |
| 212 | virtual ~RnnDescriptor() {} |
| 213 | virtual int64 ParamsSizeInBytes() const { return -1; } |
| 214 | virtual ParamsRegions ParamsWeightRegions() const { return ParamsRegions(); } |
| 215 | virtual ParamsRegions ParamsBiasRegions() const { return ParamsRegions(); } |
| 216 | }; |
| 217 | |
| 218 | // Specifies the CTC Loss computation. |
| 219 | // |
no outgoing calls
no test coverage detected