* @param model The path to the neural network model file
*
* @throws IllegalArgumentException if given param is invalid
- * @throws IllegalStateException if failed to construct the pipeline
+ * @throws IllegalStateException if this failed to construct the pipeline
*/
public SingleShot(@NonNull File model) {
this(model, null, null);
* @param fw The neural network framework
*
* @throws IllegalArgumentException if given param is invalid
- * @throws IllegalStateException if failed to construct the pipeline
+ * @throws IllegalStateException if this failed to construct the pipeline
*
* @see NNStreamer#isAvailable(NNStreamer.NNFWType)
*/
* @param out The output tensors information
*
* @throws IllegalArgumentException if given param is invalid
- * @throws IllegalStateException if failed to construct the pipeline
+ * @throws IllegalStateException if this failed to construct the pipeline
*/
public SingleShot(@NonNull File model, @Nullable TensorsInfo in, @Nullable TensorsInfo out) {
this(new File[]{model}, in, out, NNStreamer.NNFWType.TENSORFLOW_LITE, null);
* @param option The custom option string to open the neural network
*
* @throws IllegalArgumentException if given param is invalid
- * @throws IllegalStateException if failed to construct the pipeline
+ * @throws IllegalStateException if this failed to construct the pipeline
*
* @see NNStreamer#isAvailable(NNStreamer.NNFWType)
*/
*
* @return The output data (a single frame, tensor/tensors)
*
- * @throws IllegalStateException if failed to invoke the model
+ * @throws IllegalStateException if this failed to invoke the model
* @throws IllegalArgumentException if given param is null
*/
public TensorsData invoke(@NonNull TensorsData in) {
*
* @return The tensors information
*
- * @throws IllegalStateException if failed to get the input information
+ * @throws IllegalStateException if this failed to get the input information
*/
public TensorsInfo getInputInfo() {
checkPipelineHandle();
*
* @return The tensors information
*
- * @throws IllegalStateException if failed to get the output information
+ * @throws IllegalStateException if this failed to get the output information
*/
public TensorsInfo getOutputInfo() {
checkPipelineHandle();
* @param timeout The time to wait for an output
*
* @throws IllegalArgumentException if given param is invalid
- * @throws IllegalStateException if failed to set the timeout
+ * @throws IllegalStateException if this failed to set the timeout
*/
public void setTimeout(int timeout) {
checkPipelineHandle();
*
* @param in The input tensors information
*
- * @throws IllegalStateException if failed to set the input information
+ * @throws IllegalStateException if this failed to set the input information
* @throws IllegalArgumentException if given param is null
*/
public void setInputInfo(@NonNull TensorsInfo in) {