NDArray*reduceShape=nullptr;// this param is optional
autooutput=OUTPUT_VARIABLE(0);//
intseed=0;
if(block.getIArguments()->size()>0)
seed=INT_ARG(0);
REQUIRE_TRUE(shape->isVector(),0,"random_crop: Shape tensor should be a vector.");
REQUIRE_TRUE(input->rankOf()==shape->lengthOf(),0,"random_crop: The length of the shape vector is not match input rank. %i and %i were given.",
input->rankOf(),shape->lengthOf());
for(inte=0;e<shape->lengthOf();++e){
REQUIRE_TRUE((*shape).e<Nd4jLong>(e)<=input->sizeAt(e),0,"random_crop: Shape tensor should be less than proper input dimension (dim %i, %i > %i).",e,(*shape).e<Nd4jLong>(e),input->sizeAt(e));