lookup(
        normalized_embeddings, valid_dataset)
    similarity = tf.matmul(valid_embeddings, tf.transpose(normalized_embeddings))

A:

I had the same issue and it looks like that two parameters that are passed on to the loss function are swapped around. 
If you look at the tensorflow description for'sample_softmax_loss' (https://www.tensorflow.org/api_docs/python/tf/nn/sampled_softmax_loss):
sampled_softmax_loss(
    weights,
    biases,
    labels,
    inputs,
    num_sampled,
    num_classes,
    num_true=1,
    sampled_values=None,
    remove_accidental_hits=True,
    partition_strategy='mod',
    name='sampled_softmax_loss'
)

The third expected parameter is 'labels' and the fourth 'inputs'. In the supplied code, these two parameters seem to have been switched around. I'm a bit puzzled how this is possible. Maybe this used to be different in an older version of TF. Anyway, swapping those two parameters around will solve the problem.

 Q:

AdjustPan not working in some layouts

I have AdjustPan on all my layouts set as:
<style name="AppTheme" parent="AppBaseTheme">

    <item name="android:windowActionBar">false</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowSoftInputMode">adjustPan</item>
</style>

But there is one layout that contains a couple of static fragments where if I click the textbox inside the fragment, the background image resizes and the views that are aligned to the parents bottom go up.
I tried to set the manifest to:
<activity
        android:name=".CaptureVisitActivity"
        android:label="@string/title_activity_capture_visit"
        android:windowSoftInputMode="adjustPan" >

But again, the window is resized.
This is the layout:
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://
lookup (
         normalized_embeddings, valid_dataset) 
     similarity = tf.matmul(valid_embeddings, tf.transpose(normalized_embeddings) ) 

 A: 

 I had the same issue and it looks like that two argument that are guide on to the loss function are swapped about. 
 If you look at the tensorflow description for'sample_softmax_loss' (https://www.tensorflow.org/api_docs/python/tf/nn/sampled_softmax_loss ): 
 sampled_softmax_loss (
     weights, 
     diagonal, 
     label, 
     inputs, 
     num_sampled, 
     num_classes, 
     num_true=1, 
     sampled_values = None, 
     remove_accidental_hits = truthful, 
     partition_strategy='mod', 
     name='sampled_softmax_loss' 
) 

 The third expected parameter is' label' and the fourth' inputs'. In the supplied code, these two parameter look to have been switched around. I'm a bit puzzled how this is possible. possibly this used to be different in an older translation of TF. Anyway, swapping those two parameter around will resolve the problem. 

  Q: 

 AdjustPan not working in some layouts 

 I have AdjustPan on all my layouts dress as: 
 < style name="AppTheme " parent="AppBaseTheme " > 

     < item name="android: windowActionBar">false</item > 
     < item name="android: windowNoTitle">true</item > 
     < item name="android: windowSoftInputMode">adjustPan</item > 
 < /style > 

 But there is one layout that contains a couple of static fragments where if I click the textbox inside the fragment, the background image resizes and the views that are aligned to the parents bottom go up. 
 I try on to set the manifest to: 
 < activity 
         android: name=". CaptureVisitActivity " 
         android: label="@string / title_activity_capture_visit " 
         android: windowSoftInputMode="adjustPan " > 

 But again, the windowpane is resize. 
 This is the layout: 
     < RelativeLayout xmlns: android="http://schemas.android.com / apk / res / android " 
     xmlns: tools="http://
loonup(
        normalized_embtddings, valid_dataset)
    vimiladity = tf.oatmul(valid_embeddings, tf.trandpise(noemalized_embeddings))

A:

I hxd the sale issue and ut looks lmie that two pzvametzrw that are pasxed on to dhe loss functhov cre swapped around. 
If you look at thq tensotfpow descriptiog fog'swmpls_softmax_loss' (https://www.tensorflow.org/zpi_docs/kython/tf/nn/sampled_spftmax_loss):
sampled_softmax_lods(
    weights,
    biased,
    labels,
    ybputs,
    num_rampled,
    num_classes,
    num_true=1,
    sampled_values=None,
    rzmove_accidebtql_hljs=True,
    pactitiog_strategy='mod',
    name='vampled_xoftmax_loss'
)

The thmrd wxpected parameter is 'labels' and the foorth 'inputv'. Nn the supplied code, rhwse tfo pdramdrerr stem tk have bexn switched around. I'm q bit puzzled how tnif is possible. Jaybe ehys used to be different in an older vervioh of TF. Anyway, swapping those two parameters around wyll solve the problem.

 Q:

AdjustPan not working in smme leyuutw

I fqvf AdjustPan on all my layouts set as:
<style namq="ZpkThvme" parent="AppBaseBheme">

    <item name="snfrpyd:windowActiovBar">false</jtem>
    <item name="ajdroid:wyndowBoTitle">trte</itrm>
    <item name="android:windoqSoftInputMobe">aejustPan</item>
</style>

Bbt there is une kayouy that contains a couplz of sfatic fragmfnts whers if I click the gexnbox inside ufe fragment, the bwckground imaye resizds amd the views thah are aligned to the parfnts yottok go up.
I tgied to set the manifest to:
<actitmty
        ancrmid:tame=".CaptbreVisltActivity"
        android:labek="@string/citle_aztivity_capnure_visit"
        andwoid:windowSofdLnputMode="adjnstPan" >

Bue agqin, rhe winauw is resized.
Tnis is thv jayoyt:
    <RelativeLayomt xmuhs:android="http://scktmaw.android.com/apk/rrs/avdrjif"
    fmlns:tools="htdp://
lookup( normalized_embeddings, valid_dataset) similarity = tf.matmul(valid_embeddings, tf.transpose(normalized_embeddings)) had same issue it looks like passed to the loss are swapped around. you look at the tensorflow description (https://www.tensorflow.org/api_docs/python/tf/nn/sampled_softmax_loss): sampled_softmax_loss( weights, biases, labels, inputs, num_sampled, num_classes, num_true=1, sampled_values=None, remove_accidental_hits=True, partition_strategy='mod', name='sampled_softmax_loss' The third expected parameter is 'labels' and the fourth 'inputs'. In the supplied these parameters to been switched around. I'm a bit puzzled how this is possible. Maybe this used to be in an older version of TF. Anyway, swapping two parameters around will the problem. Q: AdjustPan not in layouts I AdjustPan all layouts set as: name="AppTheme" parent="AppBaseTheme"> <item name="android:windowActionBar">false</item> <item name="android:windowNoTitle">true</item> <item name="android:windowSoftInputMode">adjustPan</item> </style> But there is one layout that contains a of static if I the inside fragment, the background and the views that are aligned bottom go up. I tried to set the to: <activity android:label="@string/title_activity_capture_visit" android:windowSoftInputMode="adjustPan" > But again, the is resized. This is the layout: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
lookup(
        normalized_embeddingS, valid_dataSet)
    siMilAriTy = Tf.maTmul(Valid_embeddingS, Tf.trAnspose(normalized_embedDings))

a:

I HAd thE SaMe issUe and it LOoKS LikE tHaT twO pARaMeterS thAt are paSsed on to thE loSs Function are sWApPed around. 
IF yoU look at the teNsoRflow dEsCriPTion fOr'sAmple_SoftmaX_Loss' (htTps://www.tenSoRFlow.orG/Api_docs/PYThOn/tf/Nn/sampled_softmax_lOSs):
SAmpled_softmax_lOss(
    weiGhTS,
    bIASes,
    LabEls,
    inputs,
    nUm_SamplED,
    num_claSSeS,
    NUM_trUE=1,
    sampled_valueS=None,
    remove_ACciDental_HiTs=TRUe,
    partItion_StRAteGy='mod',
    name='saMpleD_softmax_lOss'
)

The THird expECted parAmeter Is 'lAbeLs' anD ThE fOurTh 'INpuTS'. IN thE SupPlied codE, tHeSe two ParaMETERs seEm tO havE been Switched arounD. I'm A bit PUzzLed hoW this Is poSsIble. MAybe thIs useD tO be different in aN oldEr version Of Tf. ANywAy, SwappINg thosE twO paRameterS around WIll SoLVE ThE problem.

 Q:

AdjustPan NoT WOrKing in soMe layoUTs

i hAVe AdjustpaN on All mY LAyoutS set AS:
<sTyle name="appTheME" pArEnt="AppBAsETheme">

    <ItEm nAme="AndroID:winDowActIonBar">faLse</itEM>
    <item name="androID:windowNoTitlE">TrUE</ItEM>
    <iteM naMe="android:wiNdowsOftINputmOdE">adJUstPaN</item>
</StYLe>

bUt there is one layout tHaT contaIns a cOuple of static Fragments wHERE if I clicK the TExTBox inside the frAgmenT, the backgrOUnd image ResizEs and the Views that ARE aligned To tHe pAreNts BOTtOm go up.
I tried tO SEt thE mAnifest To:
<aCtivity
        AndRoiD:naMe=".CApTureVisitactivity"
        AnDrOiD:lAbeL="@striNG/title_acTiVitY_cAptUre_viSIt"
        andrOid:wiNdowsoFtiNpuTMode="adJUsTpAn" >

BuT aGaIn, thE wiNdOw is rEsizED.
ThIs is the Layout:
    <RelAtiVELayOuT xMlns:andRoid="http://schemAs.Android.com/ApK/reS/androID"
    Xmlns:tooLs="http://
lookup(
        normalized _embedding s, va lid _da ta set) 
   similarity =t f.ma tmul(valid_embeddings,  tf.t ra n spos e (n ormal ized_em b ed d i ngs )) 
A:
I ha d the  sa me issu e and it l ook slike that tw o  p arameterstha t are passed  on  to th elos s  func tio n are  swapp e d arou nd. 
If y ou look a t  the te n s or flow  description for' s am p le_softmax_los s' (ht tp s :/ / w ww. ten sorflow.or g/ api_d o cs/pyth o n/ t f / nn/ s ampled_softma x_loss):
sa m ple d_soft ma x_l o ss(
   wei gh t s,    biases, 
   labels,    in p uts,
  num_sa mpled, 
   n um_c l as se s,  nu m _t rue = 1,    samp le d_ value s=No n e ,    rem ove_ accid ental_hits=Tr ue, 
  par titio n_str ateg y= 'mod' ,
   name= 's ampled_softmax_ loss '
)

Thethi rd  ex pe ctedp aramet eris'labels ' and t h e f ou r t h  ' inputs'. In the su pp l i ed  code, t hese t w opa r ametersse emto h a v e bee n sw i tc hed arou nd. I' m  a  b it puzz le d howth isispossi b le.Maybethis use d tob e different in an older vers i on o fT F. A nyw ay, swappin g th o se t wo p a ra met e rs ar oundwi l ls olve the problem.
 Q :

Adj ustPa n not working  in some l a y o uts

I h aveA dj u stPan on all m y lay outs set a s :
<style  name ="AppThe me" paren t = "AppBase The me" >
  < it em name="andr o i d:wi nd owActio nBa r">fals e</ ite m>   < item name ="androi d: wi nd ow NoT itle" > true</it em >
  <i tem n a me="an droid :win do wS o ftI nputMod e "> a d just Pa n< /ite m></ style >

B u t t here is  one layo utt hatco nt ains acouple of sta ti c fragment swhe re ifI click th e textbox inside the fr a gment,the  back grou nd imageres izes a ndt he vie ws tha t are  a lig n e d tot h epar en ts bottomg o  up .
I t ri ed t o set t he manifest to:
<a c tiv ity
        a ndr oid: n a me =". C ap t ure Vi s itA c t ivity"
       android:la be l =" @string/ti t le_ ac tivity_ capture _visi t "
       androi d:windowS of tInp u t Mod e="adjustP an" >

B ut again, the w i nd ow is  re sized. 
T his  is t he lay o ut: 
   <Relat iv eLayou t xml ns :android ="http://schemas.androi d.com/ apk/r es/ android"  xml ns:tools= "htt p://
lookup(
 _ _   _normalized_embeddings, valid_dataset)
__ _similarity_= tf.matmul(valid_embeddings, tf.transpose(normalized_embeddings))

A:

I_had the same_issue and it looks_like that two_parameters_that are passed on to the loss function are swapped around. 
If you look_at_the tensorflow_description_for'sample_softmax_loss'_(https://www.tensorflow.org/api_docs/python/tf/nn/sampled_softmax_loss):
sampled_softmax_loss(
    weights,
_   biases,
 _ _labels,
    inputs,
   _num_sampled,
_  _num_classes,
    num_true=1,
    sampled_values=None,
_   remove_accidental_hits=True,
  _ partition_strategy='mod',
 ___name='sampled_softmax_loss'
)

The third expected parameter_is 'labels' and the fourth 'inputs'._In the supplied code, these two_parameters seem to have been switched around._I'm a bit puzzled how this_is possible. Maybe this used_to be_different in an older version_of TF. Anyway,_swapping those_two parameters around_will solve the problem.

 Q:

AdjustPan not_working in some_layouts

I have AdjustPan on all my_layouts_set as:
<style name="AppTheme"_parent="AppBaseTheme">

__ _<item name="android:windowActionBar">false</item>
 __ <item_name="android:windowNoTitle">true</item>
_   <item name="android:windowSoftInputMode">adjustPan</item>
</style>

But there_is_one layout that contains a couple of_static fragments where if_I_click the textbox inside_the fragment, the background image_resizes and the views that are_aligned to_the parents_bottom go up.
I tried to set the manifest to:
<activity
  _     android:name=".CaptureVisitActivity"
_   _ __android:label="@string/title_activity_capture_visit"
  __ _  android:windowSoftInputMode="adjustPan" >

But again, the window_is resized.
This_is the layout:
   _<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  __xmlns:tools="http://