Repmat equivalent in python

14 次查看(过去 30 天)
Prb
Prb 2019-5-2
Hi What is is the equivalent of repmat in python and how does the below code translates to python.
BlocksEachScale =6
ResidualModuleInference = {'csReLU','conv','shift','csReLU','conv','shift','residual'};
LayerTypesInference = [InputModuleInference ...
repmat(ResidualModuleInference,1,BlocksEachScale)...
repmat(ResidualModuleInference,1,BlocksEachScale)...
repmat(ResidualModuleInference,1,BlocksEachScale)...
OutputModuleInference];
  3 个评论
Prb
Prb 2019-5-2
LayerTypesInference = [InputModuleInference, np.tile(ResidualModuleInference,(1,BlocksEachScale)), np.tile(ResidualModuleInference,(1,BlocksEachScale)),np.tile(ResidualModuleInference,(1,BlocksEachScale)),OutputModuleInference]
So could this be a an appropriate translation for this?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by