Compute Library
 22.08
Log.h File Reference

Go to the source code of this file.

Macros

#define ARM_COMPUTE_CREATE_ACL_LOGGER()
 
#define ARM_COMPUTE_LOG_MSG_ACL(log_level, msg)
 Log a message to the logger. More...
 
#define ARM_COMPUTE_LOG_MSG_WITH_FORMAT_ACL(log_level, fmt, ...)
 Log a message with format to the logger. More...
 
#define ARM_COMPUTE_LOG_ERROR_ACL(msg)
 Log an error message to the logger. More...
 
#define ARM_COMPUTE_LOG_ERROR_WITH_FUNCNAME_ACL(msg)
 Log an error message to the logger with function name before the message. More...
 
#define ARM_COMPUTE_LOG_INFO_WITH_FUNCNAME_ACL(msg)
 Log an information message to the logger with function name before the message. More...
 
#define ARM_COMPUTE_LOG_PARAMS(...)
 

Functions

template<std::size_t Index, typename... Tp>
std::enable_if< Index==sizeof...(Tp), void >::type logParamsImpl (std::vector< std::string > &data_registry, const std::tuple< Tp... > &in_params_tuple)
 Function template specialization for the out of bound element at index = tuple_size. More...
 

Macro Definition Documentation

◆ ARM_COMPUTE_CREATE_ACL_LOGGER

#define ARM_COMPUTE_CREATE_ACL_LOGGER ( )

Definition at line 45 of file Log.h.

◆ ARM_COMPUTE_LOG_ERROR_ACL

#define ARM_COMPUTE_LOG_ERROR_ACL (   msg)

◆ ARM_COMPUTE_LOG_ERROR_WITH_FUNCNAME_ACL

#define ARM_COMPUTE_LOG_ERROR_WITH_FUNCNAME_ACL (   msg)
Value:
do \
{ \
ARM_COMPUTE_CREATE_ACL_LOGGER(); \
ARM_COMPUTE_LOG_MSG_WITH_FUNCNAME("ComputeLibrary", arm_compute::logging::LogLevel::ERROR, msg); \
} while(false)

Log an error message to the logger with function name before the message.

Parameters
[in]msgMessage to log

Definition at line 88 of file Log.h.

Referenced by AclCreateContext(), AclCreateTensorPack(), and AclDestroyContext().

◆ ARM_COMPUTE_LOG_INFO_WITH_FUNCNAME_ACL

#define ARM_COMPUTE_LOG_INFO_WITH_FUNCNAME_ACL (   msg)
Value:
do \
{ \
ARM_COMPUTE_CREATE_ACL_LOGGER(); \
ARM_COMPUTE_LOG_MSG_WITH_FUNCNAME("ComputeLibrary", arm_compute::logging::LogLevel::INFO, msg); \
} while(false)

Log an information message to the logger with function name before the message.

Parameters
[in]msgMessage to log

Definition at line 99 of file Log.h.

Referenced by CLAuxTensorHandler::CLAuxTensorHandler(), CpuAuxTensorHandler::CpuAuxTensorHandler(), GraphManager::execute_graph(), GraphManager::finalize_graph(), and ClGemm::prepare().

◆ ARM_COMPUTE_LOG_MSG_ACL

#define ARM_COMPUTE_LOG_MSG_ACL (   log_level,
  msg 
)
Value:
do \
{ \
ARM_COMPUTE_CREATE_ACL_LOGGER(); \
ARM_COMPUTE_LOG_MSG("ComputeLibrary", log_level, msg); \
} while(false)

Log a message to the logger.

Parameters
[in]log_levelLogging level
[in]msgMessage to log

Definition at line 53 of file Log.h.

◆ ARM_COMPUTE_LOG_MSG_WITH_FORMAT_ACL

#define ARM_COMPUTE_LOG_MSG_WITH_FORMAT_ACL (   log_level,
  fmt,
  ... 
)
Value:
do \
{ \
ARM_COMPUTE_CREATE_ACL_LOGGER(); \
ARM_COMPUTE_LOG_MSG_WITH_FORMAT("ComputeLibrary", log_level, fmt, __VA_ARGS__); \
} while(false)

Log a message with format to the logger.

Parameters
[in]log_levelLogging level
[in]fmtString format (printf style)
[in]...Message arguments

Definition at line 66 of file Log.h.

Referenced by CpuWinogradConv2d::configure(), and CpuWinogradConv2d::validate().

◆ ARM_COMPUTE_LOG_PARAMS

#define ARM_COMPUTE_LOG_PARAMS (   ...)
Value:
do \
{ \
ARM_COMPUTE_LOG_INFO_WITH_FUNCNAME_ACL(constructDataLog(getParamsNames(#__VA_ARGS__), \
logParams(__VA_ARGS__))); \
} while(false)

Referenced by CpuCopy::configure(), CpuDequantize::configure(), CpuFill::configure(), CpuQuantize::configure(), CpuReshape::configure(), CpuTranspose::configure(), CpuFloor::configure(), CpuElementwiseUnary::configure(), CpuActivation::configure(), ClFloor::configure(), ClLogicalNot::configure(), ClReshape::configure(), ClTranspose::configure(), ClDequantize::configure(), CpuConvertFullyConnectedWeights::configure(), ClRsqrt::configure(), CPPPermute::configure(), CPPUpsample::configure(), ClActivation::configure(), CpuPermute::configure(), ClFill::configure(), CPPTopKV::configure(), ClQuantize::configure(), ClConvertFullyConnectedWeights::configure(), ClPermute::configure(), ClCopy::configure(), CpuMaxUnpooling::configure(), CpuScale::configure(), NEBitwiseNot::configure(), ClPRelu::configure(), ClElementwiseDivision::configure(), CPPNonMaximumSuppression::configure(), NEBitwiseOr::configure(), NEBitwiseXor::configure(), ClScale::configure(), ClCrop::configure(), ClPool2d::configure(), CpuDepthwiseConv2dAssemblyDispatch::configure(), CpuFlatten::configure(), CpuPool3d::configure(), ClPool3d::configure(), NEReverse::configure(), CpuElementwiseArithmetic< op >::configure(), NETile::configure(), ClFlatten::configure(), CPPDetectionOutputLayer::configure(), CpuSub::configure(), ClSoftmax::configure(), NEPriorBoxLayer::configure(), NESelect::configure(), NEReorgLayer::configure(), CpuConcatenate::configure(), CpuAdd::configure(), NEGather::configure(), CpuDepthwiseConv2d::configure(), NEBoundingBoxTransform::configure(), NEChannelShuffleLayer::configure(), NEFillBorder::configure(), ClConcatenate::configure(), CpuCast::configure(), CpuPool2d::configure(), ClCast::configure(), CLBitwiseNot::configure(), ClDirectConv2d::configure(), CLReverse::configure(), CLTile::configure(), NEBitwiseAnd::configure(), CLDepthToSpaceLayer::configure(), CpuMul::configure(), CPPBoxWithNonMaximaSuppressionLimit::configure(), CLBitwiseAnd::configure(), CLBitwiseOr::configure(), CLBitwiseXor::configure(), NEROIAlignLayer::configure(), ClExp::configure(), CLSelect::configure(), CLGather::configure(), CLNormalizePlanarYUVLayer::configure(), ClMul::configure(), ClAdd::configure(), ClSub::configure(), CPPDetectionPostProcessLayer::configure(), NEBatchToSpaceLayer::configure(), CLChannelShuffleLayer::configure(), NETranspose::configure(), CLMeanStdDevNormalizationLayer::configure(), CLPriorBoxLayer::configure(), NEMeanStdDevNormalizationLayer::configure(), NEDepthToSpaceLayer::configure(), NELogicalAnd::configure(), CLComparison::configure(), NESpaceToDepthLayer::configure(), CLReorgLayer::configure(), CpuSoftmaxGeneric< IS_LOG >::configure(), CpuGemmLowpOutputStage::configure(), CpuGemmDirectConv2d::configure(), NEFFT2D::configure(), ClGemmLowpOutputStage::configure(), NEUnstack::configure(), NESpaceToBatchLayer::configure(), CLUnstack::configure(), NERNNLayer::configure(), NEReduceMean::configure(), NEScale::configure(), CLRange::configure(), NEStackLayer::configure(), CpuWinogradConv2d::configure(), NEROIPoolingLayer::configure(), ClElementwiseMax::configure(), CLReduceMean::configure(), NEMaxUnpoolingLayer::configure(), CLCopy::configure(), NEFuseBatchNormalization::configure(), CLSpaceToDepthLayer::configure(), NECropResize::configure(), CpuDirectConv2d::configure(), NEL2NormalizeLayer::configure(), NEReductionOperation::configure(), NEFFT1D::configure(), NECast::configure(), NEConv3D::configure(), CLBatchToSpaceLayer::configure(), CpuDirectConv3d::configure(), CLBoundingBoxTransform::configure(), NERange::configure(), NEInstanceNormalizationLayer::configure(), NENormalizationLayer::configure(), CLPermute::configure(), NEDetectionPostProcessLayer::configure(), CLDequantizationLayer::configure(), CLFFT2D::configure(), CLDeconvolutionLayer::configure(), NEDepthwiseConvolutionLayer::configure(), CLROIPoolingLayer::configure(), NEArgMinMaxLayer::configure(), NEBatchNormalizationLayer::configure(), CLRNNLayer::configure(), ClNeg::configure(), ClFullyConnected::configure(), CLDeconvolutionLayerUpsample::configure(), NEPadLayer::configure(), CLFFT1D::configure(), CpuElementwiseDivision::configure(), CLConvertFullyConnectedWeights::configure(), CLSpaceToBatchLayer::configure(), CLROIAlignLayer::configure(), CLStackLayer::configure(), CpuFullyConnected::configure(), CLCrop::configure(), ClGemm::configure(), CLDepthwiseConvolutionLayer::configure(), CLPadLayer::configure(), CpuComplexMul::configure(), CLNormalizationLayer::configure(), CLL2NormalizeLayer::configure(), CLReductionOperation::configure(), CpuGemm::configure(), CLArgMinMaxLayer::configure(), ClGemmLowpMatrixMultiplyCore::configure(), CLMaxUnpoolingLayer::configure(), ClWinogradConv2d::configure(), CLDirectConvolutionLayer::configure(), NEFFTConvolutionLayer::configure(), CLCast::configure(), NEGenerateProposalsLayer::configure(), CLConcatenateLayer::configure(), CLInstanceNormalizationLayer::configure(), CLDepthConvertLayer::configure(), CLFuseBatchNormalization::configure(), ClElementwiseMin::configure(), CLCropResize::configure(), CLBatchNormalizationLayer::configure(), CpuConv2d::configure(), ClSin::configure(), ClGemmConv2d::configure(), NELSTMLayerQuantized::configure(), NELSTMLayer::configure(), CpuGemmConv2d::configure(), CpuGemmLowpMatrixMultiplyCore::configure(), CpuElementwisePower::configure(), NEDeconvolutionLayer::configure(), CLLogicalOr::configure(), ClConv2d::configure(), CLLogicalAnd::configure(), CLFFTConvolutionLayer::configure(), NESlice::configure(), NELogicalOr::configure(), NEConvolutionLayer::configure(), CLGenerateProposalsLayer::configure(), NEStridedSlice::configure(), ClLog::configure(), CLGEMMDeconvolutionLayer::configure(), CLDirectDeconvolutionLayer::configure(), ClElementwiseSquaredDiff::configure(), NEFullyConnectedLayer::configure(), CLLSTMLayerQuantized::configure(), CLSlice::configure(), NEQLSTMLayer::configure(), CpuElementwiseComparison::configure(), ClAbs::configure(), CLStridedSlice::configure(), CLConvolutionLayer::configure(), ClElementwisePower::configure(), CpuElementwiseComparisonStatic< op >::configure(), ClRound::configure(), NELogicalNot::configure(), CLLSTMLayer::configure(), and CLQLSTMLayer::configure().

Function Documentation

◆ logParamsImpl()

std::enable_if<Index == sizeof...(Tp), void>::type logParamsImpl ( std::vector< std::string > &  data_registry,
const std::tuple< Tp... > &  in_params_tuple 
)
inline

Function template specialization for the out of bound element at index = tuple_size.

Parameters
[in,out]data_registryReference to the input parameters data in a string format
[in]in_params_tupleTuple of different input data types

Definition at line 113 of file Log.h.

References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_UNUSED, name, arm_compute::test::validation::ss(), arm_compute::to_string(), and type.

114 {
115  // Because it is out of bound index so do nothing
116  ARM_COMPUTE_UNUSED(data_registry);
117  ARM_COMPUTE_UNUSED(in_params_tuple);
118 }
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
Definition: Error.h:152