View gist:f80ceaebe36b177c4d50598ad27c782b
This file contains 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
CCV_NNC_GEMM_FORWARD [1]: [3] -> [1] (0) | |
|-> 1. 0x1438bd420 (0x285d90fc0:0) [2x320] 0.517578 0.953613 -0.921875 .. | |
|-> 2. 0x1438bd570 (0x285d841c0:0) [1280x320] -0.001888 0.001598 0.001110 .. | |
|-> 3. 0x1438bd5e0 (0x285d84280:0) [1280] -0.019775 0.008278 0.010788 .. | |
|<- 1. 0x1438a0000 (0x285da5600:0) [2x1280] 0.044556 -0.020798 0.078064 .. | |
CCV_NNC_SWISH_FORWARD [2]: [1] -> [1] (0) | |
|-> 1. 0x1438a0000 (0x285da5600:0) [2x1280] 0.044556 -0.020798 0.078064 .. | |
|<- 1. 0x1438a0000 (0x285da5600:0) [2x1280] 0.022781 -0.010292 0.040558 .. | |
CCV_NNC_GEMM_FORWARD [3]: [3] -> [1] (0) | |
|-> 1. 0x1438a0000 (0x285da5600:0) [2x1280] 0.022781 -0.010292 0.040558 .. |
View pods.py
This file contains 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 | |
import argparse | |
import subprocess | |
import os | |
import re | |
import json | |
def read_version(version): | |
ver = re.compile('Using\s([\w\_\-]+)\s\(([\d\.]+)\)') |
View variant.py
This file contains 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 | |
import argparse | |
import os | |
VARIANTS = [ | |
'prod', | |
'debug', | |
] |
View focus.py
This file contains 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 | |
import argparse | |
import subprocess | |
import plistlib | |
import os | |
import xml.etree.ElementTree as ET | |
TEAM = '___YOUR_TEAM_ID__' |
View WORKSPACE
This file contains 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
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") | |
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") | |
git_repository( | |
name = "build_bazel_rules_apple", | |
remote = "https://github.com/bazelbuild/rules_apple.git", | |
commit = "524ea38c7c1f8a14bdea812f499aea7c5d3d1e13", | |
shallow_since = "1585159204 -0700" | |
) |
View monster_generated2.swift
This file contains 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
// automatically generated by the FlatBuffers compiler, do not modify | |
import FlatBuffers | |
public enum MyGame { | |
public enum Sample { | |
public enum Color: Int8, Enum { | |
public typealias T = Int8 | |
public static var byteSize: Int { return MemoryLayout<Int8>.size } |
View monster_generated1.swift
This file contains 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
// automatically generated by the FlatBuffers compiler, do not modify | |
import FlatBuffers | |
public enum MyGame { | |
public enum Sample { | |
public enum Color: Int8, Enum { | |
public typealias T = Int8 | |
public static var byteSize: Int { return MemoryLayout<Int8>.size } |
View my_dispatch_async_2.c
This file contains 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
static atomic_int executed_count; | |
void my_dispatch_async(dispatch_queue_t queue, dispatch_block_t block) { | |
dispatch_block_t wrapped_block = ^{ | |
++executed_count; | |
block(); | |
}; | |
struct Block_layout *old_block_layout = (__bridge struct Block_layout *)block; | |
if (old_block_layout->invoke == dispatch_block_special_invoke()) { | |
wrapped_block = dispatch_block_create(DISPATCH_BLOCK_INHERIT_QOS_CLASS, wrapped_block); |
View special_invoke.c
This file contains 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
typedef void (*dispatch_f)(void*, ...); | |
dispatch_f dispatch_block_special_invoke() | |
{ | |
static dispatch_once_t onceToken; | |
static dispatch_f f; | |
dispatch_once(&onceToken, ^{ | |
f = (__bridge struct Block_layout *)dispatch_block_create(DISPATCH_BLOCK_INHERIT_QOS_CLASS, ^{})->invoke; | |
}); | |
return f; | |
} |
View block_create_private.c
This file contains 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
dispatch_block_t | |
_dispatch_block_create(dispatch_block_flags_t flags, voucher_t voucher, | |
pthread_priority_t pri, dispatch_block_t block) | |
{ | |
struct dispatch_block_private_data_s dbpds(flags, voucher, pri, block); | |
return reinterpret_cast<dispatch_block_t>(_dispatch_Block_copy(^{ | |
// Capture stack object: invokes copy constructor (17094902) | |
(void)dbpds; | |
_dispatch_block_invoke_direct(&dbpds); | |
})); |
NewerOlder