Skip to content

Commit

Permalink
fixup! GafferML : Add ImageToTensor
Browse files Browse the repository at this point in the history
Move base class call into `else`.
  • Loading branch information
johnhaddon committed Nov 25, 2024
1 parent 2b420a4 commit 0d6779c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/GafferML/ImageToTensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,10 @@ void ImageToTensor::compute( Gaffer::ValuePlug *output, const Gaffer::Context *c
ConstTensorPtr tensor = new Tensor( bufferData, shape );
static_cast<TensorPlug *>( output )->setValue( tensor );
}

ComputeNode::compute( output, context );
else
{
ComputeNode::compute( output, context );
}
}

Gaffer::ValuePlug::CachePolicy ImageToTensor::hashCachePolicy( const Gaffer::ValuePlug *output ) const
Expand Down

0 comments on commit 0d6779c

Please sign in to comment.