Home
last modified time | relevance | path

Searched refs:on_value (Results 1 – 25 of 33) sorted by relevance

12

/external/tensorflow/tensorflow/python/kernel_tests/
Done_hot_op_test.py58 on_value = np.asarray(1.0, dtype=dtype)
70 on_value=on_value,
79 on_value=on_value,
128 on_value = np.asarray(1.0, dtype=dtype)
141 on_value=on_value,
150 on_value=on_value,
180 on_value = np.asarray(1.0, dtype=dtype)
192 on_value=on_value,
201 on_value=on_value,
211 on_value = np.asarray(1.0, dtype=dtype)
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Done_hot.cc39 on_value = GetInput(context, node, kOnValueTensor); in OneHotContext()
48 dtype = on_value->type; in OneHotContext()
53 const TfLiteTensor* on_value; member
73 const T on_value = *GetTensorData<T>(op_context.on_value); in OneHotComputeImpl() local
88 ? on_value in OneHotComputeImpl()
145 TF_LITE_ENSURE_EQ(context, NumElements(op_context.on_value), 1); in Prepare()
147 TF_LITE_ENSURE_EQ(context, op_context.on_value->type, op_context.dtype); in Prepare()
Done_hot_test.cc33 TensorType dtype, int axis = -1, T on_value = 1, in OneHotOpModel() argument
45 PopulateTensor<T>(on, {on_value}); in OneHotOpModel()
/external/tensorflow/tensorflow/core/kernels/
Done_hot_op.h35 const typename TTypes<T>::ConstScalar& on_value, in OneGenerator() argument
37 : indices_(indices), on_value_(on_value), off_value_(off_value) {} in OneGenerator()
60 const typename TTypes<T>::ConstScalar& on_value, in Compute()
63 generator::OneGenerator<T, TI> generator(indices, on_value, off_value); in Compute()
Done_hot_op.cc53 const Tensor& on_value = ctx->input(2); in Compute() local
68 OP_REQUIRES(ctx, TensorShapeUtils::IsScalar(on_value.shape()), in Compute()
70 on_value.shape().DebugString())); in Compute()
92 auto on_value_t = on_value.scalar<T>(); in Compute()
151 const typename TTypes<T>::ConstScalar& on_value, \
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_OneHot.pbtxt16 name: "on_value"
41 The locations represented by indices in `indices` take value `on_value`,
72 on_value = 5.0
90 on_value = 0.0
112 on_value = 1.0
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_helpers.cc86 const xla::XlaOp& indices, const xla::XlaOp& on_value, in OneHot() argument
103 xla::Broadcast(on_value, output_shape.dim_sizes()), in OneHot()
Dxla_helpers.h63 const xla::XlaOp& indices, const xla::XlaOp& on_value,
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/
Dparams.cc43 return param.threshold().on_value(); in ResolveParam()
/external/tensorflow/tensorflow/contrib/seq2seq/python/ops/
Dbeam_search_decoder.py704 on_value=False,
723 on_value=ops.convert_to_tensor(0.0, dtype=dtype),
888 on_value=False,
898 on_value=ops.convert_to_tensor(0.0, dtype=dtype),
985 on_value=np.int64(0),
1294 on_value=ops.convert_to_tensor(0., dtype=probs.dtype),
/external/tensorflow/tensorflow/contrib/kernel_methods/python/
Dlosses.py130 indices=labels, depth=num_classes, on_value=0.0, off_value=1.0)
/external/tensorflow/tensorflow/compiler/tests/
Dnary_ops_test.py133 on_value=np.float32(7), off_value=np.float32(3))
142 on_value=np.int32(2), off_value=np.int32(1),
/external/tensorflow/tensorflow/python/ops/
Darray_ops.py2905 on_value=None, argument
3004 [indices, depth, on_value, off_value, axis,
3006 on_exists = on_value is not None
3009 on_dtype = (ops.convert_to_tensor(on_value).dtype.base_dtype if on_exists
3032 on_value = ops.convert_to_tensor(1, dtype, name="on_value")
3043 return gen_array_ops.one_hot(indices, depth, on_value, off_value, axis,
Dctc_ops.py440 on_value=0.0,
479 on_value=0.0, off_value=math_ops.log(0.0))
937 idx, depth=num_states, on_value=0.0, off_value=math_ops.log(0.0),
/external/tensorflow/tensorflow/contrib/tensor_forest/proto/
Dtensor_forest_params.proto99 float on_value = 1; field
/external/tensorflow/tensorflow/contrib/distributions/python/ops/
Dmixture_same_family.py254 on_value=np.ones([], dtype=npdt),
Dmixture.py332 on_value=np.ones([], dtype=npdt),
/external/tensorflow/tensorflow/contrib/seq2seq/python/kernel_tests/
Dbeam_search_decoder_test.py401 on_value=True,
421 on_value=False,
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dlayers.py2539 on_value=1.0, argument
2561 labels, num_classes, on_value=on_value, off_value=off_value)
Dfeature_column.py1015 dense_id_tensor, depth=self.length, on_value=1.0, off_value=0.0)
/external/tensorflow/tensorflow/python/feature_column/
Dfeature_column.py2354 on_value=1.,
3043 on_value=1.0,
Dfeature_column_v2.py2893 on_value=1.,
4209 on_value=1.0,
/external/tensorflow/tensorflow/lite/testing/
Dgenerate_examples.py2366 on_value = tf.placeholder(
2373 on_value=on_value,
2377 return [indices, depth, on_value, off_value], [out]
/external/tensorflow/tensorflow/python/ops/distributions/
Dutil.py1338 on_value=count,
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.pbtxt793 …argspec: "args=[\'indices\', \'depth\', \'on_value\', \'off_value\', \'axis\', \'dtype\', \'name\'…

12