Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android change #1042

Merged
merged 11 commits into from
Mar 28, 2024
6 changes: 3 additions & 3 deletions NeoMathEngine/src/GPU/Metal/MetalMathEngineDnnDropout.mm
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@

namespace NeoML {

CDropoutDesc* CMetalMathEngine::InitDropout( float rate, bool isSpatial, bool isBatchwise,
const CBlobDesc& input, const CBlobDesc& output, int seed )
CDropoutDesc* CMetalMathEngine::InitDropout( float /*rate*/, bool /*isSpatial*/, bool /*isBatchwise*/,
const CBlobDesc& /*input*/, const CBlobDesc& /*output*/, int /*seed*/ )
{
ASSERT_EXPR(false);
return nullptr;
}

void CMetalMathEngine::Dropout( const CDropoutDesc& dropoutDesc, const CFloatHandle& inputData, const CFloatHandle& outputData )
void CMetalMathEngine::Dropout( const CDropoutDesc& /*dropoutDesc*/, const CFloatHandle& /*inputData*/, const CFloatHandle& /*outputData*/ )
{
ASSERT_EXPR(false);
}
Expand Down
6 changes: 3 additions & 3 deletions NeoMathEngine/src/GPU/Vulkan/VulkanMathEngineDnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,14 +449,14 @@ void CVulkanMathEngine::AddHeightIndex( const CBlobDesc&, const CConstIntHandle&
ASSERT_EXPR( false );
}

CDropoutDesc* CVulkanMathEngine::InitDropout( float rate, bool isSpatial, bool isBatchwise,
const CBlobDesc& input, const CBlobDesc& output, int seed )
CDropoutDesc* CVulkanMathEngine::InitDropout( float /*rate*/, bool /*isSpatial*/, bool /*isBatchwise*/,
const CBlobDesc& /*input*/, const CBlobDesc& /*output*/, int /*seed*/ )
{
ASSERT_EXPR(false);
return nullptr;
}

void CVulkanMathEngine::Dropout( const CDropoutDesc& dropoutDesc, const CFloatHandle& inputData, const CFloatHandle& outputData )
void CVulkanMathEngine::Dropout( const CDropoutDesc& /*dropoutDesc*/, const CFloatHandle& /*inputData*/, const CFloatHandle& /*outputData*/ )
{
ASSERT_EXPR(false);
}
Expand Down
2 changes: 1 addition & 1 deletion NeoMathEngine/src/MathEngineDnnDropout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CSeedDropoutDesc::CSeedDropoutDesc(float rate, bool isSpatial, bool isBatchwise,
IsBatchwise(isBatchwise),
Value(1.f / (1.f - rate)),
Seed( seed ),
Threshold((unsigned int)(ForwardRate* UINT_MAX))
Threshold((unsigned int)((double)ForwardRate* UINT_MAX))
{
ASSERT_EXPR(rate >= 0.f && rate < 1.f);
}
Expand Down