Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Fix potential shader compile issue in LeakyRelu op (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharans29 authored Mar 15, 2019
1 parent 3439e56 commit 988f891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/backends/webgl/ops/leaky-relu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class WebGLLeakyRelu extends LeakyRelu implements WebGLOperator {
uniform sampler2D A;
void main() {
float v = texture2D(A, TexCoords).r;
gl_FragColor = vec4(v < 0.0 ? v * ${this.alpha} : v);
gl_FragColor = vec4(v < 0.0 ? v * float(${this.alpha}) : v);
}
`;
return {
Expand Down

0 comments on commit 988f891

Please sign in to comment.