Home
last modified time | relevance | path

Searched refs:cache_shape (Results 1 – 7 of 7) sorted by relevance

/third_party/mindspore/mindspore/core/ir/
Dparam_info.h94 std::vector<int64_t> cache_shape() const { return cache_shape_; } in cache_shape() function
95 void set_cache_shape(const std::vector<int64_t> &cache_shape) { cache_shape_ = cache_shape; } in set_cache_shape() argument
/third_party/mindspore/mindspore/common/
Dparameter.py401 if self.cache_shape:
402 x.cache_shape = self.cache_shape
449 def cache_shape(self): member in Parameter
451 return self.param_info.cache_shape
453 @cache_shape.setter
454 def cache_shape(self, value): member in Parameter
457 self.param_info.cache_shape = value
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/cache_embedding/
Dcache_embedding.cc48 auto cache_shape = param_info->cache_shape(); in AddCacheParameters() local
50 auto new_tensor = std::make_shared<tensor::Tensor>(type_id, cache_shape); in AddCacheParameters()
70 auto cache_shape = host_param_info->cache_shape(); in CheckHostCacheParamSize() local
71 if (cache_shape.empty()) { in CheckHostCacheParamSize()
74 auto tmp_cache_size = cache_shape[0]; in CheckHostCacheParamSize()
184 auto cache_shape = cache_tensor->shape_c(); in BindAndInitCacheTensor() local
185 if (host_shape.size() != 2 && host_shape.size() != 2 && host_shape[1] != cache_shape[1]) { in BindAndInitCacheTensor()
187 << "host shape:" << host_shape << ", cache shape:" << cache_shape; in BindAndInitCacheTensor()
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/
Dparam_info_py.cc39 … .def_property("cache_shape", &ParamInfo::cache_shape, &ParamInfo::set_cache_shape) in __anon2c0500310102()
Dtensor_py.cc343 auto cache_shape = cache_tensor_ptr->shape_c(); in FlushFromCache() local
344 if (host_shape.size() != 2 && host_shape.size() != 2 && host_shape[1] != cache_shape[1]) { in FlushFromCache()
346 << "host shape:" << host_shape << ", cache shape:" << cache_shape; in FlushFromCache()
/third_party/mindspore/mindspore/nn/layer/
Dembedding.py332 self.embedding_table.cache_shape = (self.vocab_cache_size, self.embedding_size)
Dthor_layer.py862 self.embedding_table.cache_shape = (self.vocab_cache_size, self.embedding_size)