|
| 1 | +//! This module provides the hierarchical models used in the encoding and decoding process. |
1 | 2 | // This file has been automatically generated by Jinja2 via the
|
2 |
| -// script generate_models.py. |
| 3 | +// script ./generate_models.py. |
3 | 4 | // Please do not change this file by hand.
|
4 | 5 | use crate::{
|
5 | 6 | activation_functions::{GdnLayer, IgdnLayer, ReluLayer},
|
@@ -69,6 +70,7 @@ pub struct MinnenEncoder {
|
69 | 70 | }
|
70 | 71 |
|
71 | 72 | impl CodingModel for MinnenEncoder {
|
| 73 | + #[allow(clippy::let_and_return)] |
72 | 74 | fn forward_pass(&self, input: &InternalDataRepresentation) -> InternalDataRepresentation {
|
73 | 75 | let x = input.clone();
|
74 | 76 |
|
@@ -197,6 +199,7 @@ pub struct JohnstonDecoder {
|
197 | 199 | }
|
198 | 200 |
|
199 | 201 | impl CodingModel for JohnstonDecoder {
|
| 202 | + #[allow(clippy::let_and_return)] |
200 | 203 | fn forward_pass(&self, input: &InternalDataRepresentation) -> InternalDataRepresentation {
|
201 | 204 | let x = input.clone();
|
202 | 205 |
|
@@ -339,6 +342,7 @@ pub struct MinnenHyperEncoder {
|
339 | 342 | }
|
340 | 343 |
|
341 | 344 | impl CodingModel for MinnenHyperEncoder {
|
| 345 | + #[allow(clippy::let_and_return)] |
342 | 346 | fn forward_pass(&self, input: &InternalDataRepresentation) -> InternalDataRepresentation {
|
343 | 347 | let x = input.clone();
|
344 | 348 |
|
@@ -404,6 +408,7 @@ pub struct JohnstonHyperDecoder {
|
404 | 408 | }
|
405 | 409 |
|
406 | 410 | impl CodingModel for JohnstonHyperDecoder {
|
| 411 | + #[allow(clippy::let_and_return)] |
407 | 412 | fn forward_pass(&self, input: &InternalDataRepresentation) -> InternalDataRepresentation {
|
408 | 413 | let x = input.clone();
|
409 | 414 |
|
@@ -457,7 +462,9 @@ impl JohnstonHyperDecoder {
|
457 | 462 | }
|
458 | 463 |
|
459 | 464 | mod tests {
|
| 465 | + #[allow(unused_imports)] |
460 | 466 | use super::*;
|
| 467 | + #[allow(unused_imports)] |
461 | 468 | use crate::weight_loader::NpzWeightLoader;
|
462 | 469 |
|
463 | 470 | #[test]
|
|
0 commit comments