MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / gate_slice

Function gate_slice

src/framework/modules/recurrent_modules.cpp:108–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108core::TensorValue gate_slice(
109 core::ModuleBuildContext & ctx,
110 const core::TensorValue & gates,
111 int64_t hidden_size,
112 int64_t gate_index) {
113 return SliceModule({1, gate_index * hidden_size, hidden_size}).build(ctx, gates);
114}
115
116void validate_sequence_config(const LSTMSequenceConfig & config) {
117 if (config.input_size <= 0 || config.hidden_size <= 0) {

Callers 1

Calls 2

SliceModuleClass · 0.85
buildMethod · 0.45

Tested by

no test coverage detected