HomeSort by relevance Sort by last modified time
    Searched refs:constant_op (Results 1 - 25 of 623) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/tensorflow/tensorflow/python/kernel_tests/
dynamic_stitch_op_test.py 23 from tensorflow.python.framework import constant_op
40 indices = [constant_op.constant(0), constant_op.constant(1)]
41 data = [constant_op.constant(40), constant_op.constant(60)]
53 constant_op.constant(1)
55 data = [constant_op.constant(40), constant_op.constant(60)]
66 constant_op.constant([0, 4, 7]),
67 constant_op.constant([1, 6, 2, 3, 5]
    [all...]
check_ops_test.py 24 from tensorflow.python.framework import constant_op
39 tensor = constant_op.constant(1)
71 constant_op.constant([11, 22]), constant_op.constant([1, 2])
77 generator_of_stuff = (constant_op.constant([11, 22]), constant_op.constant(
86 small = constant_op.constant([1, 2], name="small")
93 small = constant_op.constant([1, 2], name="small")
100 static_small = constant_op.constant([1, 2], name="small")
101 static_big = constant_op.constant([3, 4], name="big"
    [all...]
clip_ops_test.py 21 from tensorflow.python.framework import constant_op
32 x = constant_op.constant([-5.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3])
42 x = constant_op.constant([-5.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3, 1])
44 clip = constant_op.constant([1.0, 2.0])
52 x = constant_op.constant([float('NaN'), float('Inf'), -float('Inf')])
64 x = constant_op.constant([-3.0, 0.0, 0.0, 4.0, 0.0, 0.0], shape=[2, 3])
71 clip_tensor = constant_op.constant(4.0)
80 x = constant_op.constant([-3.0, 0.0, 0.0, 4.0, 0.0, 0.0], shape=[2, 3, 1])
82 clip = constant_op.constant([1.0, 2.0])
89 x = constant_op.constant([-3.0, 0.0, 0.0, 4.0, 0.0, 0.0], shape=[2, 3]
    [all...]
bucketize_op_test.py 21 from tensorflow.python.framework import constant_op
31 constant_op.constant([-5, 0, 2, 3, 5, 8, 10, 11, 12]),
39 constant_op.constant([-5., 0., 2., 3., 5., 8., 10., 11., 12.]),
47 constant_op.constant([[-5, 0, 2, 3, 5], [8, 10, 11, 12, 0]]),
55 constant_op.constant([-5, 0]), boundaries=[0, 8, 3, 11])
64 math_ops._bucketize(constant_op.constant([-5, 0]), boundaries=0)
losses_test.py 23 from tensorflow.python.framework import constant_op
44 self._predictions = constant_op.constant([4, 8, 12, 8, 1, 3], shape=(2, 3))
45 self._labels = constant_op.constant([1, 9, 2, -5, -2, 6], shape=(2, 3))
72 constant_op.constant(weights))
77 weights = constant_op.constant((1.2, 0.0), shape=(2, 1))
83 weights = constant_op.constant([1.2, 0.0], shape=[2, 1])
89 weights = constant_op.constant([3, 6, 5, 0, 4, 2], shape=[2, 3])
95 weights = constant_op.constant([0, 0, 0, 0, 0, 2], shape=[2, 3])
110 logits = constant_op.constant([[10.0, 0.0, 0.0], [0.0, 10.0, 0.0],
112 labels = constant_op.constant([[1, 0, 0], [0, 1, 0], [0, 0, 1]]
    [all...]
  /external/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/
filtering_postprocessor_test.py 23 from tensorflow.python.framework import constant_op
37 constant_op.constant(
38 [[40.], [20.]], dtype=float_dtype), constant_op.constant(
39 [3., 6.], dtype=float_dtype), constant_op.constant([-1, -2])
42 constant_op.constant(
43 [[80.], [180.]], dtype=float_dtype), constant_op.constant(
44 [1., 2.], dtype=float_dtype), constant_op.constant([-1, -2])
47 current_times=constant_op.constant([1, 2]),
48 current_values=constant_op.constant([[0.], [1.]], dtype=float_dtype),
53 constant_op.constant([[0.1], [10.]], dtype=float_dtype)
    [all...]
  /external/tensorflow/tensorflow/contrib/kernel_methods/python/
losses_test.py 24 from tensorflow.python.framework import constant_op
36 logits = constant_op.constant([-1.0, 2.1], shape=(2,))
37 labels = constant_op.constant([0, 1])
44 logits = constant_op.constant([-1.0, 2.1], shape=(2, 1))
45 labels = constant_op.constant([1, 0], shape=(1, 1, 2))
52 logits = constant_op.constant([-1.0, 2.1], shape=(2, 1))
53 labels = constant_op.constant([1, 0], shape=(2,))
54 weights = constant_op.constant([1.5, 0.2], shape=(2, 1, 1))
61 logits = constant_op.constant([-1.0, 2.1], shape=(2, 1))
62 labels = constant_op.constant([1, 0], dtype=dtypes.float32
    [all...]
  /external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
svm_test.py 23 from tensorflow.python.framework import constant_op
35 'example_id': constant_op.constant(['1', '2', '3']),
36 'feature1': constant_op.constant([[0.0], [1.0], [3.0]]),
37 'feature2': constant_op.constant([[1.0], [-1.2], [1.0]]),
38 }, constant_op.constant([[1], [0], [1]])
61 'example_id': constant_op.constant(['1', '2', '3']),
62 'feature1': constant_op.constant([0.5, 1.0, 1.0]),
63 'feature2': constant_op.constant([1.0, -1.0, 0.5]),
64 }, constant_op.constant([1, 0, 1])
93 constant_op.constant(['1', '2', '3'])
    [all...]
test_data.py 23 from tensorflow.python.framework import constant_op
44 'feature': constant_op.constant(
46 }, constant_op.constant(
53 'feature': constant_op.constant(
55 }, constant_op.constant(
linear_test.py 41 from tensorflow.python.framework import constant_op
85 constant_op.constant([1]),
89 }, constant_op.constant([[1]])
114 }, constant_op.constant([[1]])
148 'feature': constant_op.constant(
150 }, constant_op.constant(
190 labels = constant_op.constant(
225 'feature': constant_op.constant(
227 }, constant_op.constant(
245 constant_op.constant([[.8], [0.2], [.1]])
    [all...]
  /external/tensorflow/tensorflow/contrib/linear_optimizer/python/
sdca_estimator_test.py 26 from tensorflow.python.framework import constant_op
38 'example_id': constant_op.constant(['1', '2']),
39 'maintenance_cost': constant_op.constant([500.0, 200.0]),
40 'sq_footage': constant_op.constant([[800.0], [600.0]]),
41 'weights': constant_op.constant([[1.0], [1.0]])
42 }, constant_op.constant([[0], [1]])
64 constant_op.constant(['1', '2']),
66 constant_op.constant([[500.0, 800.0], [200.0, 600.0]])
67 }, constant_op.constant([[0], [1]])
83 'example_id': constant_op.constant(['1', '2', '3'])
    [all...]
  /external/tensorflow/tensorflow/contrib/tensor_forest/client/
eval_metrics_test.py 21 from tensorflow.python.framework import constant_op
31 probabilities = constant_op.constant([[0.1, 0.2, 0.3], [0.4, 0.7, 0.5],
33 targets = constant_op.constant([[0], [2], [1], [1]])
45 probabilities = constant_op.constant([[0.1, 0.2, 0.6, 0.3, 0.5, 0.5],
50 targets = constant_op.constant([3, 0, 2, 5, 1])
61 predictions = constant_op.constant([0, 1, 3, 6, 5, 2, 7, 6, 4, 9])
62 targets = constant_op.constant([0, 1, 4, 6, 5, 1, 7, 5, 4, 8])
72 scores = constant_op.constant(
74 targets = constant_op.constant(
  /external/tensorflow/tensorflow/python/debug/lib/
common_test.py 23 from tensorflow.python.framework import constant_op
31 a = constant_op.constant(10.0, name="a")
32 b = constant_op.constant(20.0, name="b")
39 a = constant_op.constant(10.0, name="a")
40 b = constant_op.constant(20.0, name="b")
47 a = constant_op.constant(10.0, name="a")
48 b = constant_op.constant(20.0, name="b")
49 c = constant_op.constant(30.0, name="c")
50 d = constant_op.constant(30.0, name="d")
  /external/tensorflow/tensorflow/contrib/losses/python/losses/
loss_ops_test.py 25 from tensorflow.python.framework import constant_op
44 self._predictions = constant_op.constant([4, 8, 12, 8, 1, 3], shape=(2, 3))
45 self._labels = constant_op.constant([1, 9, 2, -5, -2, 6], shape=(2, 3))
73 constant_op.constant(weights))
78 weights = constant_op.constant([1.2, 0.0], shape=[2,])
85 weights = constant_op.constant([1.2, 0.0], shape=[2, 1])
92 weights = constant_op.constant([3, 6, 5, 0, 4, 2], shape=[2, 3])
99 weights = constant_op.constant([0, 0, 0, 0, 0, 2], shape=[2, 3])
116 logits = constant_op.constant([[10.0, 0.0, 0.0],
119 labels = constant_op.constant([[1, 0, 0]
    [all...]
  /external/tensorflow/tensorflow/contrib/layers/python/layers/
target_column_test.py 23 from tensorflow.python.framework import constant_op
35 prediction = constant_op.constant([[1.], [1.], [3.]])
36 labels = constant_op.constant([[0.], [1.], [1.]])
44 features = {"label_weight": constant_op.constant([[2.], [5.], [0.]])}
45 prediction = constant_op.constant([[1.], [1.], [3.]])
46 labels = constant_op.constant([[0.], [1.], [1.]])
62 logits = constant_op.constant([[1.], [1.]])
63 labels = constant_op.constant([[1.], [0.]])
75 features = {"label_weight": constant_op.constant([[1.], [0.]])}
76 logits = constant_op.constant([[1.], [1.]]
    [all...]
  /external/tensorflow/tensorflow/contrib/py2tf/utils/
context_managers_test.py 22 from tensorflow.python.framework import constant_op
33 constant_op.constant(1)):
36 [constant_op.constant(1),
37 constant_op.constant(2)]):
  /external/tensorflow/tensorflow/contrib/estimator/python/estimator/
logit_fns_test.py 24 from tensorflow.python.framework import constant_op
37 'f1': constant_op.constant([[2., 3.]]),
38 'f2': constant_op.constant([[4., 5.]])
52 'f1': constant_op.constant([[2., 3.]]),
53 'f2': constant_op.constant([[4., 5.]])
71 'f1': constant_op.constant([[2., 3.]]),
72 'f2': constant_op.constant([[4., 5.]])
86 features = {'f1': constant_op.constant([[2., 3.]]), 'f2': 'some string'}
  /external/tensorflow/tensorflow/contrib/nn/python/ops/
sampling_ops_test.py 22 from tensorflow.python.framework import constant_op
49 return constant_op.constant([
64 constant_op.constant([
68 constant_op.constant([
72 constant_op.constant([
76 constant_op.constant([
80 constant_op.constant([
88 constant_op.constant([
92 constant_op.constant([
96 constant_op.constant(
    [all...]
  /external/tensorflow/tensorflow/contrib/py2tf/impl/
api_test.py 24 from tensorflow.python.framework import constant_op
57 constant_op.constant([2, 4]), constant_op.constant(1),
58 constant_op.constant(-2))
77 constant_op.constant([2, 4]), constant_op.constant(1),
78 constant_op.constant(-2))
98 constant_op.constant([2, 4]), constant_op.constant(1),
99 constant_op.constant(-2)
    [all...]
  /external/tensorflow/tensorflow/python/eager/
tape_test.py 26 from tensorflow.python.framework import constant_op
72 a = constant_op.constant([[1., 0.], [0., 1.]])
73 b = constant_op.constant([[1., 2.], [3., 4.]])
76 tf_a = constant_op.constant([[1, 0], [0, 1]], dtype=dtypes.float32)
77 tf_b = constant_op.constant([[1, 2], [3, 4]], dtype=dtypes.float32)
92 aa = constant_op.constant([[1., 0.], [0., 1.]])
93 bb = constant_op.constant([[1., 2.], [3., 4.]])
106 aa = constant_op.constant([[1., 0.], [0., 1.]])
107 bb = constant_op.constant([[1., 2.], [3., 4.]])
120 aa = constant_op.constant([[1., 0.], [0., 1.]]
    [all...]
ops_test.py 25 from tensorflow.python.framework import constant_op
42 three = constant_op.constant(3)
43 five = constant_op.constant(5)
50 three = constant_op.constant([[3.]]).gpu()
51 five = constant_op.constant([[5.]]).gpu()
56 three = constant_op.constant(3.0)
62 three = constant_op.constant(3.0)
63 almost_three = constant_op.constant(2.8)
69 three = constant_op.constant(3)
70 four = constant_op.constant(4
    [all...]
core_test.py 31 from tensorflow.python.framework import constant_op
91 t = constant_op.constant(1.0)
163 x = constant_op.constant(1.).gpu()
165 y = constant_op.constant(2.)
176 x = constant_op.constant([[1., 2.], [3., 4.]])
189 constant = constant_op.constant(1.0)
199 cpu = constant_op.constant([[1., 2.], [3., 4.]])
204 ta = constant_op.constant([[1, 2], [3, 4]])
217 three = constant_op.constant(3)
218 five = constant_op.constant(5
    [all...]
  /external/tensorflow/tensorflow/python/profiler/
tfprof_logger_test.py 20 from tensorflow.python.framework import constant_op
36 a = constant_op.constant([[1, 2], [3, 4]])
37 b = constant_op.constant([[1, 2], [3, 4]])
  /external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/
normal_conjugate_posteriors_test.py 25 from tensorflow.python.framework import constant_op
38 mu0 = constant_op.constant([3.0])
39 sigma0 = constant_op.constant([math.sqrt(10.0)])
40 sigma = constant_op.constant([math.sqrt(2.0)])
41 x = constant_op.constant([-2.5, 2.5, 4.0, 0.0, -1.0, 2.0])
56 mu0 = constant_op.constant([[3.0, -3.0]] * batch_size)
57 sigma0 = constant_op.constant([[math.sqrt(10.0), math.sqrt(15.0)]] *
59 sigma = constant_op.constant([[math.sqrt(2.0)]] * batch_size)
61 constant_op.constant(
77 mu0 = constant_op.constant([[3.0, -3.0]] * batch_size
    [all...]
  /external/tensorflow/tensorflow/python/data/util/
convert.py 20 from tensorflow.python.framework import constant_op
33 return constant_op.constant(

Completed in 750 milliseconds

1 2 3 4 5 6 7 8 91011>>