-// Copyright (C) 2018 Intel Corporation
+// Copyright (C) 2018-2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
ASSERT_EQ(blob3->size(), 0);
}
+TEST_F(BlobTests, cannotCreateBlobWithIncorrectPrecision) {
+ InferenceEngine::TensorDesc desc(InferenceEngine::Precision::FP16, {1, 3, 227, 227}, Layout::NCHW);
+ ASSERT_THROW(InferenceEngine::make_shared_blob<float>(desc), InferenceEngine::details::InferenceEngineException);
+}
+
TEST_F(BlobTests, canUseBlobInMoveSemantics) {
TBlob<float> b(Precision::FP32, C);