• Z
    add crop_tensor_op, test=develop, test=document_preview (#19314) · b3888941
    Zhang Ting 提交于
    add crop_tensor op. The main difference with crop is :
    
    1. If the argument shape is a list, each element is an integer or a tensor variable with shape: [1]. This way is suitable for the case that the shape may be changed each iteration.
    
    2. If the argument shape is a variable. Its rank must be 1. In crop op, the rank of shape must be the same as x
    
    offsets can be a list, in which each element is an integer or a tensor variavle with shape: [1].
    b3888941
test_layers.py 100.3 KB