Home
last modified time | relevance | path

Searched refs:x_weight (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_utils.py351 def standardize_sample_or_class_weights(x_weight, output_names, weight_type): argument
366 …if x_weight is None or (isinstance(x_weight, list) and len(x_weight) == 0): # pylint: disable=g-e…
369 if isinstance(x_weight, list) and len(x_weight) == 1:
370 return x_weight
371 if isinstance(x_weight, dict) and output_names[0] in x_weight:
372 return [x_weight[output_names[0]]]
374 return [x_weight]
375 if isinstance(x_weight, list):
376 if len(x_weight) != len(output_names):
378 str(len(x_weight)) + ' elements, but the model has ' +
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dquantized_resize_bilinear_op_test.cc116 const std::tuple<int64, int64, float> x_weight = GetReferenceWeight( in CalcReferenceResizedVal() local
129 const int64 xs_lower = std::get<0>(x_weight); in CalcReferenceResizedVal()
130 const int64 xs_upper = std::get<1>(x_weight); in CalcReferenceResizedVal()
131 const float xs_lerp = std::get<2>(x_weight); in CalcReferenceResizedVal()
Dscale_and_translate_op_test.cc135 float x_weight = kernel.Value(x_kernel_pos * one_over_kernel_scale.x()); in Sample() local
136 float kernel_weight = y_weight * x_weight; in Sample()