Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Wrap cropAndResize with an op decorator #1506

Merged
merged 2 commits into from
Jan 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export class Engine implements TensorManager, TensorTracker, DataMover {
saved.push(x);
return x;
};
const scopeName = this.activeScope.name;
const scopeName = this.activeScope != null ? this.activeScope.name : '';
const startingBytecount = this.numBytes;
const startingNumTensors = this.numTensors;

Expand Down
2 changes: 1 addition & 1 deletion src/ops/image_ops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,4 @@ export const resizeBilinear = op({resizeBilinear_});
export const resizeNearestNeighbor = op({resizeNearestNeighbor_});
export const nonMaxSuppression = op({nonMaxSuppression_});
export const nonMaxSuppressionAsync = nonMaxSuppressionAsync_;
export const cropAndResize = cropAndResize_;
export const cropAndResize = op({cropAndResize_});