Home
last modified time | relevance | path

Searched refs:initial_value (Results 1 – 25 of 115) sorted by relevance

12345

/external/tensorflow/tensorflow/python/eager/
Ddef_function.py90 initial_value=None, argument
159 self, initial_value=initial_value, trainable=trainable,
163 if initial_value is None:
165 init_from_fn = callable(initial_value)
170 if isinstance(initial_value, trackable.CheckpointInitialValue):
172 self._update_uid = initial_value.checkpoint_position.restore_uid
173 initial_value = initial_value.wrapped_value
176 if init_from_fn else [initial_value]) as scope_name:
178 initial_value = ops.convert_to_tensor(
179 initial_value() if init_from_fn else initial_value,
[all …]
Dremote_test.py269 v1 = variables.Variable(initial_value=0)
270 v2 = variables.Variable(initial_value=10)
315 v1 = variables.Variable(initial_value=0)
316 v2 = variables.Variable(initial_value=10)
340 v1 = variables.Variable(initial_value=0)
342 v2 = variables.Variable(initial_value=10)
381 v1 = variables.Variable(initial_value=0)
382 v2 = variables.Variable(initial_value=10)
/external/tensorflow/tensorflow/python/ops/
Dresource_variable_ops.py102 def _combine_handle_data(handle, initial_value): argument
122 if initial_value.dtype != dtypes.variant:
125 extra_handle_data = get_eager_safe_handle_data(initial_value)
139 shape, dtype, shared_name, name, graph_mode, initial_value=None): argument
150 if initial_value is None:
151 initial_value = handle
153 full_handle_data = _combine_handle_data(handle, initial_value)
175 if initial_value is not None and initial_value.dtype == dtypes.variant:
176 extra_handle_data = get_eager_safe_handle_data(initial_value)
190 def eager_safe_variable_handle(initial_value, shape, shared_name, name, argument
[all …]
Dvariables.py182 initial_value=None, argument
206 initial_value=initial_value,
223 initial_value=None, argument
244 initial_value=initial_value,
368 initial_value=None, argument
548 lambda: self.initial_value)
551 def initial_value(self): member in Variable
1469 initial_value=None, argument
1567 initial_value=None, argument
1656 if initial_value:
[all …]
/external/tensorflow/tensorflow/python/distribute/
Dcollective_all_reduce_strategy.py366 initial_value = kwargs["initial_value"]
367 if callable(initial_value):
368 initial_value = initial_value()
369 assert not callable(initial_value)
370 initial_value = ops.convert_to_tensor(
371 initial_value, dtype=kwargs.get("dtype", None))
376 initial_value, initial_value.shape, initial_value.dtype,
379 return array_ops.identity(initial_value)
381 return collective_ops.broadcast_recv(initial_value.shape,
382 initial_value.dtype,
[all …]
Dtpu_strategy.py526 initial_value = None
531 initial_value = kwargs["initial_value"]
535 initial_value = initial_value() if callable(
536 initial_value) else initial_value
545 kwargs["initial_value"] = initial_value
/external/tensorflow/tensorflow/compiler/xla/service/
Dtree_reduction_rewriter.cc46 HloInstruction *initial_value = hlo->mutable_operand(1); in HandleReduce() local
81 input_shape, initial_value->shape(), window)); in HandleReduce()
85 intermediate_shape, reduced_op, initial_value, window, in HandleReduce()
89 HloInstruction::CreateReduce(reduce_shape, reduce_window, initial_value, in HandleReduce()
/external/protobuf/src/google/protobuf/
Darenastring.h371 void CreateInstance(Arena* arena, const ::std::string* initial_value) { in CreateInstance()
372 GOOGLE_DCHECK(initial_value != NULL); in CreateInstance()
374 ptr_ = Arena::Create< ::std::string >(arena, *initial_value); in CreateInstance()
377 void CreateInstanceNoArena(const ::std::string* initial_value) { in CreateInstanceNoArena()
378 GOOGLE_DCHECK(initial_value != NULL); in CreateInstanceNoArena()
379 ptr_ = new ::std::string(*initial_value); in CreateInstanceNoArena()
/external/python/cpython3/Lib/test/
Dtest_uu.py30 def __init__(self, initial_value="", encoding="utf-8", argument
38 if initial_value:
39 if not isinstance(initial_value, str):
40 initial_value = str(initial_value)
41 self.write(initial_value)
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_resource.cc54 string name, DataType type, TensorShape shape, xla::XlaOp initial_value, in CreateTensorArray() argument
58 initial_value, max_array_size, in CreateTensorArray()
64 TensorShape shape, const xla::XlaOp& initial_value, in XlaResource() argument
73 value_(initial_value), in XlaResource()
74 initial_value_(initial_value), in XlaResource()
Dxla_resource.h47 string name, DataType type, TensorShape shape, xla::XlaOp initial_value,
51 TensorShape shape, const xla::XlaOp& initial_value,
87 const xla::XlaOp& initial_value() const { return initial_value_; } in initial_value() function
/external/tensorflow/tensorflow/python/framework/
Dgraph_to_function_def.py70 initial_value=None): argument
72 if initial_value is None:
75 input_dict = dict(initial_value)
175 initial_value=initial_dict)
/external/webrtc/webrtc/system_wrappers/source/
Datomic32_mac.cc21 Atomic32::Atomic32(int32_t initial_value) in Atomic32() argument
22 : value_(initial_value) { in Atomic32()
Datomic32_posix.cc21 Atomic32::Atomic32(int32_t initial_value) in Atomic32() argument
22 : value_(initial_value) { in Atomic32()
Datomic32_win.cc20 Atomic32::Atomic32(int32_t initial_value) in Atomic32() argument
21 : value_(initial_value) { in Atomic32()
/external/libchrome/base/
Datomic_ref_count.h18 explicit constexpr AtomicRefCount(int initial_value) in AtomicRefCount() argument
19 : ref_count_(initial_value) {} in AtomicRefCount()
/external/tensorflow/tensorflow/python/keras/utils/
Dtf_utils_test.py37 variables.Variable(name='blah', initial_value=0.)))
45 variables.Variable(name='blah', initial_value=0.)))
66 variables.Variable(name='blah', initial_value=0.)))
75 variables.Variable(name='blah', initial_value=0.)))
/external/tensorflow/tensorflow/python/training/experimental/
Dloss_scale.py114 def _add_weight(self, name, initial_value, dtype=None): argument
129 initial_value=initial_value,
319 initial_value=self._initial_loss_scale)
323 name='good_steps', dtype=dtypes.int64, initial_value=0)
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dtree_reduction_rewriter.cc64 HloInstruction *initial_value = hlo->mutable_operand(1); in RewriteReduction() local
121 padded_shape, input, initial_value, padding_config)); in RewriteReduction()
163 inner_reduce_shape, reshaped_padded_input, initial_value, in RewriteReduction()
178 outer_reduce_shape, inner_reduce, initial_value, in RewriteReduction()
/external/python/cpython2/Lib/bsddb/test/
Dtest_sequence.py35 self.assertEqual(None, self.seq.initial_value(start_value))
75 self.seq.initial_value(seq_range[0])
108 self.assertEqual(None, self.seq.initial_value(value_plus-1))
117 self.assertEqual(None, self.seq.initial_value(value_minus))
/external/tensorflow/tensorflow/python/kernel_tests/
Dresource_variable_ops_test.py309 b = resource_variable_ops.ResourceVariable(initial_value=[[3., 4.]])
316 v = resource_variable_ops.ResourceVariable(initial_value=1.0)
668 initial_value=lambda: 1, constraint=constraint, name="var0")
674 initial_value=lambda: 1, constraint=constraint, name="var1")
681 initial_value=lambda: 1, dtype=dtypes.float32)
702 initial_value=lambda: 1, dtype=dtypes.float32, name="var0")
707 v = resource_variable_ops.ResourceVariable(initial_value=lambda: 1,
779 initial_value=constant_op.constant(3.0)).to_proto()
785 initial_value=constant_op.constant(3.0)).to_proto()
793 initial_value=constant_op.constant(3.0)).to_proto()
[all …]
Dvariables_test.py120 initial_value = variables._try_guard_against_uninitialized_dependencies(
122 self.assertIs(initial_value, cyclic)
189 initial_value=array_ops.zeros((0,), dtype=dtypes.string),
291 v = variables.Variable(initial_value=zero)
468 self.assertAllClose(value, self.evaluate(v1.initial_value))
476 self.assertAllClose(np.negative(value), self.evaluate(v2.initial_value))
530 initial_value=constant_op.constant(3.0)).to_proto()
557 initial_value=constant_op.constant(10.0))
564 initial_value=constant_op.constant(10.0))
573 initial_value=constant_op.constant(10.0),
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dvector_support_library.h308 llvm::Value* initial_value) in VectorVariable() argument
310 Set(initial_value); in VectorVariable()
317 llvm::Value* initial_value) in ScalarVariable() argument
319 Set(initial_value); in ScalarVariable()
329 std::vector<llvm::Value*> initial_value);
/external/tensorflow/tensorflow/python/training/tracking/
Dutil.py408 initial_value = initializer
414 def initial_value(): function
419 initial_value=initial_value,
541 initial_value, argument
579 return next_creator(initial_value=initializer, name=name, **inner_kwargs)
585 initializer=initial_value,
602 initial_value=initial_value,
/external/llvm/utils/lit/lit/
DTestRunner.py700 def __init__(self, keyword, kind, parser=None, initial_value=None): argument
716 self.value = initial_value
799 initial_value=script),
801 initial_value=test.xfails),
803 initial_value=requires),
805 initial_value=requires_any),
807 initial_value=unsupported),

12345