This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Any, Dict, FrozenSet, List, Set, Tuple, Union | |
class DictToClass: | |
"""Convert a dict of any depth to a class.""" | |
def __init__(self, data: Dict) -> None: | |
for name, value in data.items(): | |
setattr(self, name, self.__expand(value)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file thread_safe_queue.hpp. | |
* @brief Thread safe queue. | |
* @author Aiz (c). | |
* @date 2021. | |
*/ | |
#pragma once | |
#include <mutex> | |
#include <queue> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------------------------ | |
# - | |
# Python dual-logging setup (console and daily logfile), - | |
# supporting different log levels, tqdm and colorized output. - | |
# - | |
# Based on: - | |
# https://gist.github.com/fonic/7e5ab76d951a2ab2d5f526a7db3e2004 - | |
# - | |
# ------------------------------------------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Possible configuration (contrib, cuda, openvino): | |
:: NVidia CUDA Toolkit | |
:: NVidia cuDNN | |
:: Intel C++ Compiler Redistributable Libraries | |
:: Intel MKL | |
:: Intel TBB | |
:: Intel OpenVINO toolkit | |
:: | |
:: Current configuration (contrib, cuda): | |
:: NVidia CUDA Toolkit 11.1.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Possible configuration (contrib, cuda, openvino): | |
# NVidia CUDA Toolkit | |
# NVidia cuDNN | |
# Intel C++ Compiler Redistributable Libraries | |
# Intel MKL | |
# Intel TBB | |
# Intel OpenVINO toolkit | |
# |