Home
last modified time | relevance | path

Searched refs:var_tensor (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dstateful_random_ops.cc56 Tensor* var_tensor = var->tensor(); in UpdateVariableAndFill() local
57 if (var_tensor->dtype() != STATE_ELEMENT_DTYPE) { in UpdateVariableAndFill()
61 DataTypeString(var_tensor->dtype())); in UpdateVariableAndFill()
63 if (var_tensor->dims() != 1) { in UpdateVariableAndFill()
66 var_tensor->dims()); in UpdateVariableAndFill()
68 auto var_tensor_flat = var_tensor->flat<StateElementType>(); in UpdateVariableAndFill()
90 ctx, var_tensor, var->copy_on_read_mode.load())); in UpdateVariableAndFill()
93 &state_var_guard, var_tensor, output_data); in UpdateVariableAndFill()
Dresource_variable_ops.cc504 Tensor* var_tensor = variable->tensor(); in Compute() local
505 OP_REQUIRES(context, var_tensor->shape().IsSameSize(value.shape()), in Compute()
507 var_tensor->shape().DebugString(), in Compute()
513 context, var_tensor, variable->copy_on_read_mode.load())); in Compute()
515 update_functor(context->eigen_device<Device>(), var_tensor->flat<T>(), in Compute()
/external/tensorflow/tensorflow/contrib/framework/kernels/
Dzero_initializer_op.cc104 Tensor* var_tensor = nullptr; in Compute() local
109 dtype_, shape_, &unused, &var_tensor, attr)); in Compute()
113 var_tensor->flat<T>()); in Compute()
115 *(*var_ptr)->tensor() = *var_tensor; in Compute()
/external/tensorflow/tensorflow/python/data/experimental/ops/
Dtake_while_ops.py44 var_tensor = gen_experimental_dataset_ops.experimental_take_while_dataset(
49 super(_TakeWhileDataset, self).__init__(input_dataset, var_tensor)