reid from https://github.com/michuanhaohao/reid-strong-baseline
zhangmeng
2020-01-11 fe2d20be1fe0a318086e9ac0eeb587880905d6ff
update
1个文件已修改
4 ■■■■ 已修改文件
run.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
run.go
@@ -122,9 +122,5 @@
    l := len(src) * 4
    ptr := unsafe.Pointer(&src[0])
    // It is important to keep in mind that the Go garbage collector
    // will not interact with this data, and that if src if freed,
    // the behavior of any Go code using the slice is nondeterministic.
    // Reference: https://github.com/golang/go/wiki/cgo#turning-c-arrays-into-go-slices
    return (*[1 << 26]byte)((*[1 << 26]byte)(ptr))[:l:l]
}