18 explicit CastFixture(
const std::string& inputShape,
19 const std::string& outputShape,
20 const std::string& inputDataType,
21 const std::string& outputDataType)
29 layer_type: "InputLayer", 35 layerName: "inputTensor", 39 connection: { sourceLayerIndex:0, outputSlotIndex:0 }, 44 dimensions: )" + inputShape + R"(, 45 dataType: )" + inputDataType + R"( 53 layer_type: "CastLayer", 57 layerName: "CastLayer", 61 connection: { sourceLayerIndex:0, outputSlotIndex:0 }, 66 dimensions: )" + outputShape + R"(, 67 dataType: )" + outputDataType + R"( 74 layer_type: "OutputLayer", 80 layerName: "outputTensor", 84 connection: { sourceLayerIndex:1, outputSlotIndex:0 }, 89 dimensions: )" + outputShape + R"(, 90 dataType: )" + outputDataType + R"( 104 struct SimpleCastFixture : CastFixture
106 SimpleCastFixture() : CastFixture(
"[ 1, 6 ]",
114 RunTest<2, armnn::DataType::Signed32 , armnn::DataType::Float32>(
116 {{
"inputTensor", { 0, -1, 5, -100, 200, -255 }}},
117 {{
"outputTensor", { 0.0f, -1.0f, 5.0f, -100.0f, 200.0f, -255.0f }}});
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
TEST_SUITE("Deserializer_Cast")