Lines Matching refs:capabilities
1850 static bool isQuantized8PerformanceConsistentWithP(const V1_2::Capabilities& capabilities) { in isQuantized8PerformanceConsistentWithP() argument
1852 lookup(capabilities.operandPerformance, OperandType::TENSOR_QUANT8_ASYMM); in isQuantized8PerformanceConsistentWithP()
1855 [quantized8Performance, &capabilities](OperandType type) { in isQuantized8PerformanceConsistentWithP()
1857 lookup(capabilities.operandPerformance, type); in isQuantized8PerformanceConsistentWithP()
1879 bool compliantWithV1_0(const V1_1::Capabilities& capabilities) { in compliantWithV1_0() argument
1880 return capabilities.relaxedFloat32toFloat16Performance == capabilities.float32Performance; in compliantWithV1_0()
1883 bool compliantWithV1_0(const V1_2::Capabilities& capabilities) { in compliantWithV1_0() argument
1885 lookup(capabilities.operandPerformance, OperandType::TENSOR_FLOAT32); in compliantWithV1_0()
1887 lookup(capabilities.operandPerformance, OperandType::FLOAT32); in compliantWithV1_0()
1889 perfTensorFloat32 != capabilities.relaxedFloat32toFloat16PerformanceTensor || in compliantWithV1_0()
1890 perfFloat32 != capabilities.relaxedFloat32toFloat16PerformanceScalar) { in compliantWithV1_0()
1894 return isQuantized8PerformanceConsistentWithP(capabilities); in compliantWithV1_0()
1905 bool compliantWithV1_1(const V1_2::Capabilities& capabilities) { in compliantWithV1_1() argument
1906 if ((capabilities.relaxedFloat32toFloat16PerformanceTensor != in compliantWithV1_1()
1907 capabilities.relaxedFloat32toFloat16PerformanceScalar) || in compliantWithV1_1()
1908 (lookup(capabilities.operandPerformance, OperandType::TENSOR_FLOAT32) != in compliantWithV1_1()
1909 lookup(capabilities.operandPerformance, OperandType::FLOAT32))) { in compliantWithV1_1()
1913 return isQuantized8PerformanceConsistentWithP(capabilities); in compliantWithV1_1()
1963 V1_0::Capabilities convertToV1_0(const V1_0::Capabilities& capabilities) { in convertToV1_0() argument
1964 return capabilities; in convertToV1_0()
1967 V1_0::Capabilities convertToV1_0(const V1_1::Capabilities& capabilities) { in convertToV1_0() argument
1968 if (!compliantWithV1_0(capabilities)) { in convertToV1_0()
1969 LOG(ERROR) << "Upcasting non-compliant capabilities " << toString(capabilities) in convertToV1_0()
1972 return { .float32Performance = capabilities.float32Performance, in convertToV1_0()
1973 .quantized8Performance = capabilities.quantized8Performance }; in convertToV1_0()
1976 V1_0::Capabilities convertToV1_0(const V1_2::Capabilities& capabilities) { in convertToV1_0() argument
1977 if (!compliantWithV1_0(capabilities)) { in convertToV1_0()
1978 LOG(ERROR) << "Upcasting non-compliant capabilities " << toString(capabilities) in convertToV1_0()
1982 lookup(capabilities.operandPerformance, OperandType::TENSOR_FLOAT32), in convertToV1_0()
1984 lookup(capabilities.operandPerformance, OperandType::TENSOR_QUANT8_ASYMM)}; in convertToV1_0()
1987 V1_1::Capabilities convertToV1_1(const V1_0::Capabilities& capabilities) { in convertToV1_1() argument
1988 return { .float32Performance = capabilities.float32Performance, in convertToV1_1()
1989 .quantized8Performance = capabilities.quantized8Performance, in convertToV1_1()
1990 .relaxedFloat32toFloat16Performance = capabilities.float32Performance }; in convertToV1_1()
1993 V1_1::Capabilities convertToV1_1(const V1_1::Capabilities& capabilities) { in convertToV1_1() argument
1994 return capabilities; in convertToV1_1()
1997 V1_1::Capabilities convertToV1_1(const V1_2::Capabilities& capabilities) { in convertToV1_1() argument
1998 if (!compliantWithV1_1(capabilities)) { in convertToV1_1()
1999 LOG(ERROR) << "Upcasting non-compliant capabilities " << toString(capabilities) in convertToV1_1()
2003 lookup(capabilities.operandPerformance, OperandType::TENSOR_FLOAT32), in convertToV1_1()
2005 lookup(capabilities.operandPerformance, OperandType::TENSOR_QUANT8_ASYMM), in convertToV1_1()
2007 capabilities.relaxedFloat32toFloat16PerformanceTensor}; in convertToV1_1()
2010 V1_2::Capabilities convertToV1_2(const V1_0::Capabilities& capabilities) { in convertToV1_2() argument
2012 .relaxedFloat32toFloat16PerformanceScalar = capabilities.float32Performance, in convertToV1_2()
2013 .relaxedFloat32toFloat16PerformanceTensor = capabilities.float32Performance, in convertToV1_2()
2015 makeQuantized8PerformanceConsistentWithP(capabilities.quantized8Performance)}; in convertToV1_2()
2018 opPerf[opPerf.size() - 2] = {OperandType::TENSOR_FLOAT32, capabilities.float32Performance}; in convertToV1_2()
2019 opPerf[opPerf.size() - 1] = {OperandType::FLOAT32, capabilities.float32Performance}; in convertToV1_2()
2028 V1_2::Capabilities convertToV1_2(const V1_1::Capabilities& capabilities) { in convertToV1_2() argument
2030 capabilities.relaxedFloat32toFloat16Performance, in convertToV1_2()
2032 capabilities.relaxedFloat32toFloat16Performance, in convertToV1_2()
2034 capabilities.quantized8Performance)}; in convertToV1_2()
2037 opPerf[opPerf.size() - 2] = {OperandType::TENSOR_FLOAT32, capabilities.float32Performance}; in convertToV1_2()
2038 opPerf[opPerf.size() - 1] = {OperandType::FLOAT32, capabilities.float32Performance}; in convertToV1_2()
2047 V1_2::Capabilities convertToV1_2(const V1_2::Capabilities& capabilities) { in convertToV1_2() argument
2048 return capabilities; in convertToV1_2()