Home
last modified time | relevance | path

Searched refs:indices_shp (Results 1 – 6 of 6) sorted by relevance

/third_party/mindspore/mindspore/core/abstract/
Dprim_others.cc216 auto indices_shp = indices->shape()->shape(); in InferImplMakeRowTensor() local
217 if (indices_shp.size() != 1) { in InferImplMakeRowTensor()
218 …MS_EXCEPTION(TypeError) << "Indices must be a 1 dimension tensor, but got a " << indices_shp.size() in InferImplMakeRowTensor()
222 if (indices_shp[0] != values_shp[0]) { in InferImplMakeRowTensor()
224 << values_shp[0] << ", but got " << indices_shp[0]; in InferImplMakeRowTensor()
322 auto indices_shp = indices->shape()->shape(); in InferImplMakeSparseTensor() local
323 if (indices_shp.size() != 2) { in InferImplMakeSparseTensor()
324 …MS_EXCEPTION(TypeError) << "Indices must be a 2 dimension tensor, but got a " << indices_shp.size() in InferImplMakeSparseTensor()
332 if (indices_shp[0] != values_shp[0]) { in InferImplMakeSparseTensor()
334 << values_shp[0] << ", but got " << indices_shp[0]; in InferImplMakeSparseTensor()
[all …]
Dprim_arrays.cc438 auto indices_shp = indices->shape(); in InferImplMapCacheIdx() local
439 MS_EXCEPTION_IF_NULL(indices_shp); in InferImplMapCacheIdx()
444 if (!indices_shp->max_shape().empty()) { in InferImplMapCacheIdx()
445 max_shape = indices_shp->max_shape(); in InferImplMapCacheIdx()
447 max_shape = indices_shp->shape(); in InferImplMapCacheIdx()
606 auto indices_shp = indices->shape()->shape(); in InferImplGatherV2() local
628 ShapeVector out_shape = calc_shape(indices_shp, params_shp); in InferImplGatherV2()
671 auto indices_shp = indices->shape(); in InferImplEmbeddingLookup() local
672 MS_EXCEPTION_IF_NULL(indices_shp); in InferImplEmbeddingLookup()
673 auto indices_shape = indices_shp->shape(); in InferImplEmbeddingLookup()
[all …]
/third_party/mindspore/mindspore/core/ops/
Dembedding_lookup.cc56 auto indices_shp = indices->shape()->shape(); in EmbeddingLookupInfer() local
58 (void)shape.insert(shape.end(), indices_shp.begin(), indices_shp.end()); in EmbeddingLookupInfer()
Dgather.cc66 auto indices_shp = indices->shape()->shape(); in GatherInfer() local
89 ShapeVector out_shape = calc_shape(indices_shp, params_shp); in GatherInfer()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/cache_embedding/
Dcache_embedding.cc312 auto indices_shp = indices_ori_shp->cast<abstract::ShapePtr>(); in CreateMapCacheIdx() local
316 if (!indices_shp->max_shape().empty()) { in CreateMapCacheIdx()
317 max_shape = indices_shp->max_shape(); in CreateMapCacheIdx()
319 max_shape = indices_shp->shape(); in CreateMapCacheIdx()
326 auto cache_idx = std::make_shared<abstract::AbstractTensor>(indices_element_type, indices_shp); in CreateMapCacheIdx()
/third_party/mindspore/mindspore/ops/operations/
Darray_ops.py5880 indices_shp = indices['shape']
5881 if not indices_shp: