MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / RnnDescriptor

Class RnnDescriptor

tensorflow/stream_executor/dnn.h:205–216  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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.
205class 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//

Callers 1

CreateRnnDescriptorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected