Skip to content

Instantly share code, notes, and snippets.

View dkurt's full-sized avatar

Dmitry Kurtaev dkurt

View GitHub Profile
serving_default...   NOT_RUN              layerType: Parameter            execType: unknown_I8           realTime (ms): 0.000      cpuTime (ms): 0.000      
FakeQuantize_12      EXECUTED             layerType: Subgraph             execType: jit_avx512_I8        realTime (ms): 0.176      cpuTime (ms): 0.176      
FakeQuantize_12...   EXECUTED             layerType: Reorder              execType: jit_uni_I8           realTime (ms): 0.112      cpuTime (ms): 0.112      
Multiply_26793       EXECUTED             layerType: Convolution          execType: brgconv_avx512_I8    realTime (ms): 0.453      cpuTime (ms): 0.453      
efficientnet-li...   NOT_RUN              layerType: FakeQuantize         execType: undef                realTime (ms): 0.000      cpuTime (ms): 0.000      
FakeQuantize_34      NOT_RUN              layerType: FakeQuantize         execType: undef                realTime (ms): 0.000      cpuTime (ms): 0.000      
efficientnet-li...   NOT_RUN              layerType: FakeQuantize         exec
repositories {
mavenCentral()
def github = ivy {
url "https://github.com/"
patternLayout {
artifact '/[organisation]/[module]/releases/download/[revision]/openvino-[revision]-[classifier].[ext]'
}
@dkurt
dkurt / CMakeLists.txt
Last active May 20, 2021 06:09
OpenVINO nGraph custom layer in runtime
cmake_minimum_required(VERSION 3.4.3)
project(ngraph_custom_layer CXX)
find_package(InferenceEngine REQUIRED)
find_package(ngraph REQUIRED)
find_package(TBB REQUIRED tbb tbbmalloc)
include_directories(
${OpenCV_INCLUDE_DIRS}

My file

int main(int argc, char** argv) {
  return 0;
}
import torch
import torch.nn as nn
from torch.autograd import Variable
torch.manual_seed(1412)
def fake_unpool(x, pool_inp, pool_out, indices):
# perform sanity check
ref = nn.MaxUnpool2d(2, stride=2)(x, indices)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.myapplication">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
sudo curl -o GPG-PUB-KEY-INTEL-OPENVINO-2021 https://apt.repos.intel.com/openvino/2021/GPG-PUB-KEY-INTEL-OPENVINO-2021
sudo apt-key add GPG-PUB-KEY-INTEL-OPENVINO-2021
sudo echo "deb https://apt.repos.intel.com/openvino/2021 all main" | sudo tee - a /etc/apt/sources.list.d/intel-openvino-2021.list
sudo apt-get update
sudo apt-get install -y --no-install-recommends intel-openvino-dev-ubuntu18-2021.1.110
cmake_minimum_required(VERSION 3.4.3)
project(sample CXX)
find_package(InferenceEngine REQUIRED)
find_package(ngraph REQUIRED)
add_executable(${CMAKE_PROJECT_NAME} main.cpp)
target_compile_features(${CMAKE_PROJECT_NAME} PRIVATE cxx_range_for)
@dkurt
dkurt / CMakeLists.txt
Last active October 8, 2023 18:48
OpenVINO asynchronous C++ example
cmake_minimum_required(VERSION 3.4.3)
project(sample CXX)
find_package(InferenceEngine REQUIRED)
add_executable(${CMAKE_PROJECT_NAME} main.cpp)
target_compile_features(${CMAKE_PROJECT_NAME} PRIVATE cxx_range_for)
target_link_libraries(${CMAKE_PROJECT_NAME}
date value
2020-10-05 18:38:10.268021 59
2020-10-05 18:43:10.119784 59
2020-10-05 18:48:09.965870 58
2020-10-05 18:53:09.808872 58
2020-10-05 18:58:09.648668 58
2020-10-05 19:03:09.487420 58
2020-10-05 19:08:09.327250 58
2020-10-05 19:13:09.167299 57
2020-10-05 19:18:09.007362 57