Filter löschen
Filter löschen

Repmat equivalent in python

10 Ansichten (letzte 30 Tage)
Prb
Prb am 2 Mai 2019
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 Kommentare
Prb
Prb am 2 Mai 2019
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?
Walter Roberson
Walter Roberson am 2 Mai 2019
Maybe??

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by