getOutputTensorPos.es6 466 字节
Newer Older
Y
Yanzhan Yang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* eslint-disable */
/**
 * @file 公共方法
 * @author yangmingming
 */
export default `
ivec4 getOutputTensorPos() {
    // 获取原始长度
    vec2 outCoord = moveTexture2PosToReal_texture_out(vCoord.xy);
    int x = int(outCoord.x / float(channel_out));
    int c = int(mod(outCoord.x, float(channel_out)));
    int y = int(mod(outCoord.y, float(height_shape_out)));
    int b = int(outCoord.y / float(height_shape_out));
    return ivec4(b, c, y, x);
}
`;