Home
last modified time | relevance | path

Searched refs:as_ref (Results 1 – 16 of 16) sorted by relevance

/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dmodule.py20 def Repr(obj, as_ref=True): argument
36 return obj.Repr(as_ref=as_ref)
43 return ('[\n%s\n]' % (',\n'.join(' %s' % Repr(elem, as_ref).replace(
50 Repr(key, as_ref).replace('\n', '\n '),
51 Repr(val, as_ref).replace('\n', '\n '))
69 def ReprIndent(name, as_ref): argument
70 return ' %s=%s' % (name, Repr(getattr(obj, name), as_ref).replace(
75 ',\n'.join(ReprIndent(name, as_ref)
76 for (name, as_ref) in names.iteritems()))
93 def Repr(self, as_ref=True): argument
[all …]
/external/tensorflow/tensorflow/python/framework/
Dconstant_op.py302 as_ref=False): argument
303 _ = as_ref
320 as_ref=False): argument
322 _ = as_ref
353 as_ref=False): argument
355 _ = as_ref
Dops.py979 def _TensorTensorConversionFunction(t, dtype=None, name=None, as_ref=False): argument
980 _ = name, as_ref
1108 as_ref=False)
1118 as_ref=False, argument
1171 value, dtype=preferred_dtype, name=name, as_ref=as_ref)
1186 ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
1210 as_ref=False, argument
1249 as_ref=as_ref,
1284 as_ref=False)
1309 value=value, dtype=dtype, name=name, as_ref=False)
[all …]
Dop_def_library.py471 as_ref=input_arg.is_ref)
481 value, as_ref=input_arg.is_ref)
526 as_ref=input_arg.is_ref,
541 values, as_ref=input_arg.is_ref).dtype.name
/external/tensorflow/tensorflow/contrib/tpu/python/tpu/
Dkeras_tpu_variables.py229 def _dense_var_to_tensor(self, dtype=None, name=None, as_ref=False): argument
233 return self._primary_var._dense_var_to_tensor(dtype, name, as_ref)
237 if as_ref:
245 def _tensor_conversion(var, dtype=None, name=None, as_ref=False): argument
246 …return var._dense_var_to_tensor(dtype=dtype, name=name, as_ref=as_ref) # pylint: disable=protecte…
/external/tensorflow/tensorflow/python/keras/mixed_precision/experimental/
Dautocast_variable.py134 def _dense_var_to_tensor(self, dtype=None, name=None, as_ref=False): argument
138 as_ref)
140 assert not as_ref
147 as_ref=False)
/external/tensorflow/tensorflow/python/kernel_tests/
Dtensor_priority_test.py73 def raise_to_delegate(value, dtype=None, name=None, as_ref=False): argument
74 del value, dtype, name, as_ref # Unused.
/external/tensorflow/tensorflow/python/distribute/
Dvalues.py743 def _tensor_conversion_mirrored(var, dtype=None, name=None, as_ref=False): argument
746 assert not as_ref
748 var.get(), dtype=dtype, name=name, as_ref=as_ref)
1146 def _dense_var_to_tensor(self, dtype=None, name=None, as_ref=False): argument
1150 return self._get()._dense_var_to_tensor(dtype, name, as_ref)
1154 if as_ref:
1185 def _tensor_conversion_tpu_mirrored(var, dtype=None, name=None, as_ref=False): argument
1186 …return var._dense_var_to_tensor(dtype=dtype, name=name, as_ref=as_ref) # pylint: disable=protecte…
1291 def _tensor_conversion_sync_on_read(var, dtype=None, name=None, as_ref=False): argument
1293 var.get(), dtype=dtype, name=name, as_ref=as_ref)
[all …]
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/ops/
Dsdca_ops.py283 def _convert_n_to_tensor(self, input_list, as_ref=False): argument
296 tensor_to_convert, as_ref=as_ref))
603 self._convert_n_to_tensor([v], as_ref=True),
/external/tensorflow/tensorflow/python/training/saving/
Dsaveable_object_util.py197 variable = ops.internal_convert_to_tensor(op, as_ref=True)
282 var = ops.internal_convert_to_tensor(var, as_ref=True)
/external/tensorflow/tensorflow/python/ops/
Dvariables.py918 …def _TensorConversionFunction(v, dtype=None, name=None, as_ref=False): # pylint: disable=invalid-… argument
925 if as_ref:
2161 …def _TensorConversionFunction(v, dtype=None, name=None, as_ref=False): # pylint: disable=invalid-… argument
2168 if as_ref:
2584 def _TensorConversionFunction(v, dtype=None, name=None, as_ref=False): argument
2591 if as_ref:
Dresource_variable_ops.py1366 def _dense_var_to_tensor(self, dtype=None, name=None, as_ref=False): argument
1372 if as_ref:
1419 def _dense_var_to_tensor(var, dtype=None, name=None, as_ref=False): argument
1420 …return var._dense_var_to_tensor(dtype=dtype, name=name, as_ref=as_ref) # pylint: disable=protecte…
Dgradients_util.py54 def _IndexedSlicesToTensor(value, dtype=None, name=None, as_ref=False): argument
71 _ = as_ref
600 xs, name="x", as_ref=True)
Dcontrol_flow_ops.py184 data = ops.internal_convert_to_tensor_or_composite(data, as_ref=True)
197 data = ops.internal_convert_to_tensor_or_composite(data, as_ref=True)
235 data = ops.internal_convert_to_tensor_or_composite(data, as_ref=True)
267 data = ops.internal_convert_to_tensor_or_composite(data, as_ref=True)
300 data, dtype=dtype, name="data", as_ref=True)
387 ops.internal_convert_to_tensor_or_composite(inp, as_ref=True)
Darray_ops.py1104 def _autopacking_conversion_function(v, dtype=None, name=None, as_ref=False): argument
1106 if as_ref:
/external/tensorflow/tensorflow/contrib/distribute/python/
Dvalues_test.py593 converted = ops.internal_convert_to_tensor(replica_local, as_ref=False)
597 converted = ops.internal_convert_to_tensor(replica_local, as_ref=True)