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
void Start() | |
{ | |
// Option | |
var options = new Interpreter.Options() | |
{ | |
// Multithread | |
threads = 2, | |
// Metal option | |
gpuDelegate = new MetalDelegate(new MetalDelegate.Options() | |
{ |
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
// the image 28 * 28 grayscale | |
float[,] inputs = new float[28, 28]; | |
// the array of probability | |
float[] outputs = new float[10]; | |
void Start() | |
{ | |
// Read bytes from model and make Interpreter | |
interpreter = new Interpreter(File.ReadAllBytes(path)); |
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
using Unity.Collections; | |
using Unity.Collections.LowLevel.Unsafe; | |
namespace ARKitStream.Internal | |
{ | |
public static class NativeArrayExtension | |
{ | |
public static byte[] ToRawBytes<T>(this NativeArray<T> arr) where T : struct | |
{ | |
var slice = new NativeSlice<T>(arr).SliceConvert<byte>(); |
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
using Unity.Collections; | |
public static class NativeArrayExtension | |
{ | |
public static byte[] ToRawBytes<T>(this NativeArray<T> arr) where T : struct | |
{ | |
var slice = new NativeSlice<T>(arr).SliceConvert<byte>(); | |
var bytes = new byte[slice.Length]; | |
slice.CopyTo(bytes); | |
return bytes; |
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
<template lang="pug"> | |
.vimeo | |
.player(ref="player") | |
</template> | |
<script lang="ts"> | |
import { Component, Prop, Vue } from 'vue-property-decorator' | |
import Player, { Options } from '@vimeo/player' | |
// Vue wrapper for |
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
using UnityEngine; | |
namespace Fourier | |
{ | |
public static class WindowFunction | |
{ | |
// Implementation of Unity FFT Window Functions | |
// https://docs.unity3d.com/ScriptReference/FFTWindow.html |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" PCA9622 """ | |
from __future__ import print_function | |
import time | |
import smbus | |
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
using System; | |
using System.Linq; | |
using System.Reflection; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
namespace AppKit | |
{ | |
[RequireComponent(typeof(Slider))] |
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
using System; | |
using System.Linq; | |
using System.Reflection; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
namespace AppKit | |
{ | |
[RequireComponent(typeof(Slider))] |
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
{ | |
"name": "Platform IO", | |
"includePath": [ | |
"${workspaceRoot}" | |
], | |
"defines": [], | |
"intelliSenseMode": "clang-x64", | |
"browse": { | |
"path": [ | |
"$HOME/.platformio/packages/framework-arduinoespressif32", |