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
| //Source code do curso Algoritmos com C++ por Fabio Galuppo | |
| //Ministrado em 2022 na Agit - https://www.agit.com.br/cursoalgoritmos.php | |
| //Fabio Galuppo - http://member.acm.org/~fabiogaluppo - fabiogaluppo@acm.org | |
| //Atualizado em 2024-01-17 | |
| //This file is licensed to you under the MIT license | |
| //Ref.: https://sean-parent.stlab.cc/presentations/2021-03-13-relationships/2021-03-13-relationships.pdf | |
| #ifndef REGISTRY_HPP | |
| #define REGISTRY_HPP |
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
| #include "tglang.h" | |
| #include "weights.h" | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <math.h> |
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
| # `Linguist` is required | |
| find_package(Qt6 COMPONENTS Linguist REQUIRED) | |
| # ... | |
| # Have your app specified | |
| qt_add_executable(myapp ... | |
| # ... |
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 | |
| ### steps #### | |
| # verify the system has a cuda-capable gpu | |
| # download and install the nvidia cuda toolkit and cudnn | |
| # setup environmental variables | |
| # verify the installation | |
| ### | |
| ### to verify your gpu is cuda enable check |
- cxx11 ABI
libtorch-cxx11-abi-shared-with-deps-1.4.0+cu92.zip : https://download.pytorch.org/libtorch/cu92/libtorch-cxx11-abi-shared-with-deps-1.4.0%2Bcu92.zip
libtorch-cxx11-abi-shared-with-deps-1.4.0+cu100.zip : https://download.pytorch.org/libtorch/cu100/libtorch-cxx11-abi-shared-with-deps-1.4.0%2Bcu100.zip
libtorch-cxx11-abi-shared-with-deps-1.4.0.zip : https://download.pytorch.org/libtorch/cu101/libtorch-cxx11-abi-shared-with-deps-1.4.0.zip
libtorch-cxx11-abi-shared-with-deps-1.5.0+cu92.zip : https://download.pytorch.org/libtorch/cu92/libtorch-cxx11-abi-shared-with-deps-1.5.0%2Bcu92.zip- open the terminal (Ctrl+R + cmd)
- check Python3 installation:
py --version - go to official website to learn details: https://pypi.org/project/opencv-python/
- choose the most complete package and run:
py -m pip install opencv-contrib-python - check installation by entering the Python REPL:
py - import tha library:
import cv2
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
| import QtQuick 2.0 | |
| import QtQuick.Layouts 1.12 | |
| import QtQuick.Controls 2.12 | |
| import QtQml.Models 2.12 | |
| Item { | |
| id: root | |
| property alias model: tableView.model | |
| default property list<TableColumn> columns |
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
| # Required deps: | |
| # imagemagick: https://imagemagick.org/script/download.php | |
| # name of your master icon, must be at least 512X512 | |
| PNG_MASTER="icon-large.png" | |
| ICONSET_FOLDER="AppIcon.iconset" | |
| sizes=( | |
| 16x16 | |
| 32x32 |
NewerOlder