Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
lina128 committed Nov 21, 2020
1 parent 3e13f00 commit eab867f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tfjs-backend-webgl/src/backend_webgl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,9 @@ export class MathBackendWebGL extends KernelBackend {

linspace(start: number, stop: number, num: number): Tensor1D {
// TODO: Use CPU implementation due to the precision problem in Safari.
return linSpaceImplCPU(start, stop, num);
const outVals = linSpaceImplCPU(start, stop, num);

return this.makeOutput([outVals.length], 'float32', outVals);
}

makeTensorInfo(
Expand Down

0 comments on commit eab867f

Please sign in to comment.