Skip to content

Commit a9a7eca

Browse files
committed
add .add() method API
1 parent 0d6277f commit a9a7eca

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

html/docs/modelSequential.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,21 @@
516516
</ul>
517517
</div>
518518

519+
<div id="predict" class="property-title"><a href="https://github.com/tensorspace-team/tensorspace/blob/master/src/tsp-model/Sequential.js#L239">.add( layer )</a> : void</div>
520+
<div>
521+
<ul class="list-content">
522+
<li class="panel-heading"><i class="material-icons">filter_center_focus</i>
523+
The <span class="highlight-text">add()</span> method is used to append the provided TSP layer object into the TSP Sequential model.
524+
</li>
525+
<li class="panel-heading"><i class="material-icons">filter_center_focus</i>
526+
The provided layer is added to the last of the sequential list of the model.
527+
</li>
528+
<li class="panel-heading"><i class="material-icons">filter_center_focus</i>
529+
The provided layer instance will be updated based on the Sequential model configurations.
530+
</li>
531+
</ul>
532+
</div>
533+
519534
<div class="property-title"><a href="https://github.com/tensorspace-team/tensorspace/blob/master/src/tsp-model/AbstractModel.js#L241">.getAllLayers()</a> : Layer[]</div>
520535
<div>
521536
<ul class="list-content">

html/docs/modelSequential_zh.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,21 @@
509509
</ul>
510510
</div>
511511

512+
<div id="predict" class="property-title"><a href="https://github.com/tensorspace-team/tensorspace/blob/master/src/tsp-model/Sequential.js#L239">.add( layer )</a> : void</div>
513+
<div>
514+
<ul class="list-content">
515+
<li class="panel-heading"><i class="material-icons">filter_center_focus</i>
516+
<span class="highlight-text">add()</span> 方法将所提供的网络层对象添加至顺序模型中。
517+
</li>
518+
<li class="panel-heading"><i class="material-icons">filter_center_focus</i>
519+
所提供的网络层将被添加至顺序模型中的最后一位。顺序模型的网络层列表将被更新。
520+
</li>
521+
<li class="panel-heading"><i class="material-icons">filter_center_focus</i>
522+
所提供的网络层实例将基于所添加的顺序模型参数进行适当更新。
523+
</li>
524+
</ul>
525+
</div>
526+
512527
<div class="property-title"><a href="https://github.com/tensorspace-team/tensorspace/blob/master/src/tsp-model/AbstractModel.js#L241">.getAllLayers()</a> : Layer[]</div>
513528
<div>
514529
<ul class="list-content">

0 commit comments

Comments
 (0)