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

Function ToMIOpenRnnMode

tensorflow/stream_executor/rocm/rocm_dnn.cc:1575–1588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1573}
1574
1575miopenRNNMode_t ToMIOpenRnnMode(dnn::RnnMode rnn_mode) {
1576 switch (rnn_mode) {
1577 case dnn::RnnMode::kRnnRelu:
1578 return miopenRNNRELU;
1579 case dnn::RnnMode::kRnnTanh:
1580 return miopenRNNTANH;
1581 case dnn::RnnMode::kRnnLstm:
1582 return miopenLSTM;
1583 case dnn::RnnMode::kRnnGru:
1584 return miopenGRU;
1585 default:
1586 LOG(FATAL) << "Invalid RNN Mode: " << static_cast<int>(rnn_mode);
1587 }
1588}
1589
1590int MIOpenDataTypeToByteSize(miopenDataType_t data_type) {
1591 switch (data_type) {

Callers 1

createRnnDescriptorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected