-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCI "Filter layers that are exclusive to selected frameworks" #418
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
03115b8
Add files via upload
ZeroZeroJedenJeden 807afb6
Add files via upload
ZeroZeroJedenJeden 1d4a783
Update adding_new_layers.md
ZeroZeroJedenJeden db576e3
Update adding_new_layers.md
ZeroZeroJedenJeden 7e197ff
Add files via upload
ZeroZeroJedenJeden 555e8f1
Add files via upload
ZeroZeroJedenJeden 071aebd
Add files via upload
ZeroZeroJedenJeden 4ad5a1f
Add files via upload
ZeroZeroJedenJeden 3503fad
Update adding_new_layers.md
ZeroZeroJedenJeden 5eff333
Add files via upload
ZeroZeroJedenJeden 94ffe32
Add files via upload
ZeroZeroJedenJeden e13de94
Update filterbar.js
ZeroZeroJedenJeden 6223c70
Add files via upload
ZeroZeroJedenJeden 603cef9
Add files via upload
ZeroZeroJedenJeden ec4781c
Add files via upload
ZeroZeroJedenJeden 22c835d
Delete filterbar.js
ZeroZeroJedenJeden 24d347a
Delete pane.js
ZeroZeroJedenJeden 244980b
Delete content.js
ZeroZeroJedenJeden c61dde2
Add files via upload
ZeroZeroJedenJeden 6b48678
Add files via upload
ZeroZeroJedenJeden e053568
Update content.js
ZeroZeroJedenJeden cd40ef0
Add files via upload
ZeroZeroJedenJeden ad4dfa9
Add files via upload
ZeroZeroJedenJeden 18532a0
Add files via upload
ZeroZeroJedenJeden bc81f8d
Delete filterbar.js
ZeroZeroJedenJeden 702aca3
Add files via upload
ZeroZeroJedenJeden 9ba2d18
Add files via upload
ZeroZeroJedenJeden 95d250c
Merge branch 'master' into master
Ram81 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
import React from 'react'; | ||
import $ from 'jquery' | ||
|
||
class FilterBar extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
this.changeEvent= this.changeEvent.bind(this); | ||
} | ||
|
||
changeEvent(cbid) { | ||
var kerasLayers = ["RNN_Button", "GRU_Button", "LSTM_Button", "Embed_Button", "ELU_Button", "Sigmoid_Button", | ||
"ThresholdedReLU", "ReLU_Button", "PReLU_Button", "Softmax_Button", "BatchNorm_Button", "SELU_Button", | ||
"GaussianNoise_Button", "GaussianDropout_Button", "AlphaDropout_Button", "TimeDistributed_Button", "TanH_Button", | ||
"Bidirectional_Button", "RepeatVector_Button", "Masking_Button", "Permute_Button", "InnerProduct_Button", | ||
"Deconvolution_Button", "Regularization_Button", "Softsign_Button", "Upsample_Button", "Pooling_Button", | ||
"LocallyConnected_Button", "Input_Button", "Convolution_Button", "LRN_Button", "DepthwiseConv_Button", "Flatten_Button", | ||
"Reshape_Button", "Concat_Button", "Softplus_Button", "HardSigmoid_Button", "Dropout_Button", "Eltwise_Button"]; | ||
|
||
var tensorFlowLayers = ["Input_Button", "Convolution_Button", "Pooling_Button", "DepthwiseConv_Button", "InnerProduct_Button", | ||
"LRN_Button", "Concat_Button", "Flatten_Button", "BatchNorm_Button", "Deconvolution_Button", "Sigmoid_Button", | ||
"Softplus_Button", "Softsign_Button", "ELU_Button", "ReLU_Button", "Softmax_Button", "TanH_Button", "SELU_Button", | ||
"Dropout_Button", "Eltwise_Button"]; | ||
|
||
var caffeLayers = ["ImageData_Button", "HDF5Data_Button", "HDF5Output_Button", "Input_Button", "WindowData_Button", | ||
"MemoryData_Button", "DummyData_Button", "Convolution_Button", "Pooling_Button", "SPP_Button", "Deconvolution_Button", | ||
"Recurrent_Button", "RNN_Button", "LSTM_Button", "LRN_Button", "MVN_Button", "BatchNorm_Button", | ||
"InnerProduct_Button", "Dropout_Button", "Embed_Button", "ReLU_Button", "PReLU_Button", "ELU_Button", | ||
"Sigmoid_Button", "TanH_Button", "AbsVal_Button", "Power_Button", "Exp_Button", "Log_Button", "BNLL_Button", | ||
"Threshold_Button", "Bias_Button", "Scale_Button", "Flatten_Button", "ThresholdedReLU", "Python_Button", | ||
"Reshape_Button", "BatchReindex_Button", "Split_Button", "Concat_Button", "Eltwise_Button", "Filter_Button", | ||
"Reduction_Button", "Silence_Button", "ArgMax_Button", "Softmax_Button", "MultinomialLogisticLoss_Button", | ||
"InfogainLoss_Button", "SoftmaxWithLoss_Button", "EuclideanLoss_Button", "HingeLoss_Button", "Slice_Button", | ||
"SigmoidCrossEntropyLoss_Button", "Accuracy_Button", "ContrastiveLoss_Button", "Data_Button", "Crop_Button"]; | ||
var filterCheckBox_Keras = document.getElementById("filterCheckBox_Keras"); | ||
var filterCheckBox_TensorFlow = document.getElementById("filterCheckBox_TensorFlow"); | ||
var filterCheckBox_Caffe = document.getElementById("filterCheckBox_Caffe"); | ||
var visible = []; | ||
|
||
let checkBox = document.getElementById(cbid); | ||
checkBox.checked = !checkBox.checked; | ||
|
||
if (filterCheckBox_Keras.checked == false & filterCheckBox_TensorFlow.checked == false & filterCheckBox_Caffe.checked == false) { | ||
for (let elem of $('.drowpdown-button')) { | ||
elem.classList.remove("hide"); | ||
} | ||
} | ||
if (filterCheckBox_Keras.checked == true) { | ||
visible = visible.concat(kerasLayers); | ||
} | ||
if (filterCheckBox_TensorFlow.checked == true) { | ||
visible = visible.concat(tensorFlowLayers); | ||
} | ||
if (filterCheckBox_Caffe.checked == true) { | ||
visible = visible.concat(caffeLayers); | ||
} | ||
|
||
for (let elem of $('.drowpdown-button')) { | ||
for (let j = 0; j < visible.length; j++) { | ||
let id = elem.id; | ||
if (id == visible[j]) { | ||
elem.classList.remove("hide"); | ||
j = visible.length + 1; | ||
} | ||
else { | ||
elem.classList.add("hide"); | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<input id="layer-search-input" placeholder="Search for layer"></input> | ||
<i className="material-icons" id="layer-search-icon">search</i> | ||
<div className="form-group pull-right"> | ||
<div className="dropdown"> | ||
<button id="topbar-icon" className="btn btn-default dropdown-toggle form-control filter-button" data-toggle="dropdown"> | ||
<span className="glyphicon glyphicon-filter filter-glyphicon" aria-hidden="true"></span> | ||
</button> | ||
<ul className="dropdown-menu pull-right"> | ||
<li> | ||
<a className="btn" onClick={this.changeEvent.bind(this, "filterCheckBox_Keras")}> | ||
<label className="filter">Keras</label> | ||
<input type="checkBox" id="filterCheckBox_Keras" onClick={this.changeEvent.bind(this, "filterCheckBox_Keras")} /> | ||
</a> | ||
</li> | ||
<li> | ||
<a className="btn" onClick={this.changeEvent.bind(this, "filterCheckBox_TensorFlow")}> | ||
<label className="filter">Tensorflow</label> | ||
<input type="checkBox" id="filterCheckBox_TensorFlow" onClick={this.changeEvent.bind(this, "filterCheckBox_TensorFlow")} /> | ||
</a> | ||
</li> | ||
<li> | ||
<a className="btn" onClick={this.changeEvent.bind(this, "filterCheckBox_Caffe")}> | ||
<label className="filter">Caffe</label> | ||
<input type="checkBox" id="filterCheckBox_Caffe" onClick={this.changeEvent.bind(this, "filterCheckBox_Caffe")} /> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
} | ||
export default FilterBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the indentation