@@ -53,12 +53,12 @@ class TransposeOperator : public OperatorInterface<1, 1> {
53
53
output_shape[_axes[i]] = input_shape[i];
54
54
55
55
// output_strides(i) is derived from axes and input_strides
56
- output_strides[_axes[i]] = (* input_strides) [i];
56
+ output_strides[_axes[i]] = input_strides[i];
57
57
}
58
58
59
59
// Output shape can be asserted once the transform
60
60
// effect has been determined
61
- output_shape-> update_dims ();
61
+ output_shape. update_dims ();
62
62
output_tensor->resize (output_shape);
63
63
64
64
// Perform some basic checks
@@ -82,7 +82,7 @@ class TransposeOperator : public OperatorInterface<1, 1> {
82
82
// Index of the source value, must be calculated
83
83
// using the output strides and output shape
84
84
uint32_t idx = 0 ;
85
- for (uint32_t j = 0 ; j < output_shape-> num_dims (); j++) {
85
+ for (uint32_t j = 0 ; j < output_shape. num_dims (); j++) {
86
86
idx += offsets[j] * output_strides[j];
87
87
}
88
88
@@ -91,7 +91,7 @@ class TransposeOperator : public OperatorInterface<1, 1> {
91
91
92
92
// Update offsets, to iterate sequentially along strides
93
93
// in the order of axes
94
- for (int32_t j = output_shape-> num_dims () - 1 ; j >= 0 ; j--) {
94
+ for (int32_t j = output_shape. num_dims () - 1 ; j >= 0 ; j--) {
95
95
offsets[j] = (offsets[j] + 1 ) % (output_shape[j]);
96
96
if ( offsets[j] > 0 ) {
97
97
break ;
0 commit comments