下载地址是 http://www.xilinx.com/support/download.html . 挺大的,慢慢下.
解压后, 执行 setup (需要切换到 Terminal 中执行).
append_when_not_found() { | |
line=$1 | |
file=$2 | |
dry_run=$3 | |
if [ x"$dry_run" = x"true" ] | |
then | |
(grep -q -F "$line" $file) || ((echo "Append [$line] to [$file]") && (echo "$line")) | |
else | |
(grep -q -F "$line" $file) || ((echo "Append [$line] to [$file]") && (echo "$line" >> $file)) |
extension UIImage { | |
func buffer() -> CVPixelBuffer? { | |
let attrs = [kCVPixelBufferCGImageCompatibilityKey: kCFBooleanTrue, kCVPixelBufferCGBitmapContextCompatibilityKey: kCFBooleanTrue, | |
kCVPixelBufferIOSurfacePropertiesKey: NSDictionary()] as CFDictionary | |
var pixelBuffer : CVPixelBuffer? | |
let status = CVPixelBufferCreate(kCFAllocatorDefault, Int(self.size.width), Int(self.size.height), kCVPixelFormatType_32ARGB, attrs, &pixelBuffer) | |
guard (status == kCVReturnSuccess) else { | |
return nil | |
} |
name: "VGG_ILSVRC_16_layers" | |
input: "data" | |
input_shape { | |
dim: 1 | |
dim: 3 | |
dim: 224 | |
dim: 224 | |
} |
下载地址是 http://www.xilinx.com/support/download.html . 挺大的,慢慢下.
解压后, 执行 setup (需要切换到 Terminal 中执行).
#include <iostream> | |
#include <map> | |
#include <vector> | |
#include <string> | |
namespace zerozero{ | |
namespace unittest{ | |
typedef void (*Test_func)(bool &test_result); |
#!/bin/sh | |
# usage: clip pwd | |
# clip ls -l | |
RESULT=`$*` && echo $RESULT && echo $RESULT | pbcopy |
// | |
// MP4Atom.h | |
// Encoder Demo | |
// | |
// Created by Geraint Davies on 15/01/2013. | |
// Copyright (c) 2013 GDCL http://www.gdcl.co.uk/license.htm | |
// | |
#import <Foundation/Foundation.h> |
$doms = $('input') | |
$doms.onclick = function(){ | |
this.value = 123 | |
} | |
$doms = $('.imgs') |
var Human = function(){ | |
this.getAge = function(){ | |
return 1 | |
} | |
this.getSex = function(){ | |
return "I don't know" | |
} | |
} |