Results 5 comments of sehoi

1. use the type class TextView instead of class AutofitTextView. 2. add textView.setMaxLines(2) programmatically and AutofitHelper.create(textView)

For me, this worked. // when resizing textview txtWord.setTextSize(10) AutofitHelper autofitHelper = AutofitHelper.create(txtWord); autofitHelper.setMaxLines(2); autofitHelper.setTextSize(txtWord.getTextSize());

please try this. // class BTNavigationDropdownMenu // isShown: private -> public public var isShown: Bool! = false // ViewController2 @IBAction func backButtonTouched(sender: AnyObject) { print(menuView.isShown) if !menuView.isShown { print("backButtonTouched") //...

your question is not clear. but try this. change shape np.array([BS, TRIGRAM_D], np.int64) to np.array([None, TRIGRAM_D], np.int64).

https://github.com/liaha/dssm/blob/master/single/dssm_v3.py I think the pull_batch function seems to accept already pre-processed(query/title -> n-gram vector -> one-hot encoded vector) data as input. And the input is simply a one-hot encoded vector...