Fix init-self compiler warnings (#493)

Fix a few errors caused by trying to initialize a class member
with itself. These errors can turn into errors if you compile
with `-Winit-self`.
This commit is contained in:
Mike Iovine 2022-05-10 21:35:28 -07:00 committed by GitHub
parent 57551902d0
commit c4cf0dad82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -145,9 +145,9 @@ public:
mode(GemmUniversalMode::kGemm), mode(GemmUniversalMode::kGemm),
batch_count(1), batch_count(1),
ptr_A(nullptr), ptr_B(nullptr), ptr_C(nullptr), ptr_D(nullptr), ptr_A(nullptr), ptr_B(nullptr), ptr_C(nullptr), ptr_D(nullptr),
ptr_gather_A_indices(ptr_gather_A_indices), ptr_gather_A_indices(nullptr),
ptr_gather_B_indices(ptr_gather_B_indices), ptr_gather_B_indices(nullptr),
ptr_scatter_D_indices(ptr_scatter_D_indices) {} ptr_scatter_D_indices(nullptr) {}
/// constructs an arguments structure /// constructs an arguments structure
Arguments( Arguments(

View File

@ -654,7 +654,7 @@ struct TrmmDescription : public OperationDescription {
TensorDescription const &A = TensorDescription(), TensorDescription const &A = TensorDescription(),
SideMode side_mode = SideMode::kInvalid, SideMode side_mode = SideMode::kInvalid,
FillMode fill_mode = FillMode::kInvalid, FillMode fill_mode = FillMode::kInvalid,
DiagType daig_type = DiagType::kInvalid, DiagType diag_type = DiagType::kInvalid,
TensorDescription const &B = TensorDescription(), TensorDescription const &B = TensorDescription(),
TensorDescription const &D = TensorDescription(), TensorDescription const &D = TensorDescription(),
NumericTypeID element_epilogue = NumericTypeID::kInvalid, NumericTypeID element_epilogue = NumericTypeID::kInvalid,