Home
last modified time | relevance | path

Searched refs:var_shape (Results 1 – 22 of 22) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dtraining_ops.cc36 TensorShape var_shape; in Compile() local
37 OP_REQUIRES_OK(ctx, ctx->ReadVariableInput(0, type, &var_shape, &handle)); in Compile()
46 ctx, var_shape.IsSameSize(delta_shape), in Compile()
48 var_shape.DebugString(), " vs ", in Compile()
81 TensorShape var_shape; in Compile() local
82 OP_REQUIRES_OK(ctx, ctx->ReadVariableInput(0, dtype_, &var_shape, &var)); in Compile()
98 ctx, var_shape.IsSameSize(delta_shape), in Compile()
100 var_shape.DebugString(), " vs ", in Compile()
126 TensorShape var_shape, accum_shape; in Compile() local
128 OP_REQUIRES_OK(ctx, ctx->ReadVariableInput(0, type, &var_shape, &var)); in Compile()
[all …]
Dstateful_random_ops.cc191 TensorShape var_shape; in CompileImpl() local
193 state_input_idx, STATE_ELEMENT_DTYPE, &var_shape, &var)); in CompileImpl()
194 TF_RETURN_IF_ERROR(CheckStateShape(alg, var_shape)); in CompileImpl()
438 TensorShape var_shape; in Compile() local
441 &var_shape, &var)); in Compile()
447 OP_REQUIRES_OK(ctx, CheckStateShape(alg, var_shape)); in Compile()
Dvariable_ops.cc178 TensorShape var_shape; in Compile() local
181 context, context->ReadVariableInput(0, dtype, &var_shape, &var_value)); in Compile()
185 var_shape, context->InputShape(1), in Compile()
/external/tensorflow/tensorflow/python/kernel_tests/variables/
Dpartitioned_variables_test.py196 var_name, var_shape, expected_axis_shards, argument
202 var_name, dtype=dtypes.float32, shape=var_shape)
216 var_shape=[2048],
227 var_shape=[2048, 1024],
237 var_shape=[2048, 1024],
245 var_shape=[2048, 1024],
256 var_shape=[2048, 1024],
264 var_shape=[2048, 1024],
274 var_shape=[64, 1024, 1, 3],
282 var_shape=[64, 1024, 1, 3],
[all …]
/external/tensorflow/tensorflow/core/ops/
Dresource_variable_ops.cc240 ShapeHandle var_shape = (*handle_data)[0].shape; in VariableShapeShapeFn() local
241 int64_t rank = c->RankKnown(var_shape) ? c->Rank(var_shape) in VariableShapeShapeFn()
326 ShapeHandle var_shape = handle_shape_and_type[0].shape; in ResourceScatterUpdateShape() local
332 TF_RETURN_IF_ERROR(c->Subshape(var_shape, 1, &var_subshape)); in ResourceScatterUpdateShape()
Dstate_ops.cc117 ShapeHandle var_shape = c->input(0); in ScatterUpdateShape() local
123 TF_RETURN_IF_ERROR(c->Subshape(var_shape, 1, &var_subshape)); in ScatterUpdateShape()
130 c->set_output(0, var_shape); in ScatterUpdateShape()
/external/tensorflow/tensorflow/compiler/xla/service/
Dbatchnorm_expander_test.cc94 Shape var_shape = ShapeUtil::MakeShape(F32, {2}); in TEST_F() local
108 HloInstruction::CreateParameter(3, var_shape, "var")); in TEST_F()
Dshape_inference.cc1460 const Shape& mean_shape, const Shape& var_shape, in InferBatchNormGradShape() argument
1466 TF_RETURN_IF_ERROR(ExpectArray(var_shape, "var input of batch norm grad")); in InferBatchNormGradShape()
1473 TF_RETURN_IF_ERROR(ShapeUtil::ValidateShapeWithOptionalLayout(var_shape)); in InferBatchNormGradShape()
1507 if (var_shape.rank() != 1) { in InferBatchNormGradShape()
1511 var_shape.rank()); in InferBatchNormGradShape()
1558 if (!ShapeUtil::SameElementTypeIgnoringFpPrecision(var_shape, in InferBatchNormGradShape()
1589 if (ShapeUtil::GetDimension(var_shape, 0) != feature_count) { in InferBatchNormGradShape()
1594 ShapeUtil::GetDimension(var_shape, 0), feature_count); in InferBatchNormGradShape()
Dshape_inference.h102 const Shape& var_shape,
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.-variable.-save-slice-info.pbtxt11 …argspec: "args=[\'self\', \'full_name\', \'full_shape\', \'var_offset\', \'var_shape\', \'save_sli…
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.experimental.dtensor.-d-variable.-save-slice-info.pbtxt11 …argspec: "args=[\'self\', \'full_name\', \'full_shape\', \'var_offset\', \'var_shape\', \'save_sli…
Dtensorflow.-variable.-save-slice-info.pbtxt11 …argspec: "args=[\'self\', \'full_name\', \'full_shape\', \'var_offset\', \'var_shape\', \'save_sli…
/external/tensorflow/tensorflow/python/ops/
Dvariables.py1269 var_shape=None, argument
1293 self.var_shape = [i for i in save_slice_info_def.var_shape]
1298 self.var_shape = var_shape
1305 "%d,%d" % (o, s) for o, s in zip(self.var_offset, self.var_shape))
1326 for i in self.var_shape:
1327 save_slice_info_def.var_shape.append(i)
Dvariable_scope.py763 for i, (var_offset, var_shape) in enumerate(
777 init_shape = var_shape
780 init_shape = var_shape
782 init = array_ops.slice(initializer, var_offset, var_shape)
788 init = array_ops.slice(init, var_offset, var_shape)
812 var_shape))
/external/tensorflow/tensorflow/python/training/
Dslot_creator.py103 slice_info.var_shape[:n]))
Dslot_creator_test.py157 self.assertAllEqual([1], si.var_shape)
/external/tensorflow/tensorflow/core/framework/
Dvariable.proto83 repeated int64 var_shape = 4; field
/external/tensorflow/tensorflow/core/tpu/graph_rewrite/
Ddistributed_tpu_rewrite_pass.cc3005 xla::StatusOr<Node*> CreateTpuExecuteDummyArg(const TensorShape& var_shape, in CreateTpuExecuteDummyArg() argument
3023 for (int i = 0; i < var_shape.dims(); ++i) { in CreateTpuExecuteDummyArg()
3024 tensorshape_proto.add_int_val(var_shape.dim_size(i)); in CreateTpuExecuteDummyArg()
3026 TensorShape shape_shape({var_shape.dims()}); in CreateTpuExecuteDummyArg()
3093 TensorShape var_shape; in CreatePartitionedDummyVarArgs() local
3094 if (!raw_shape.handle_shape.AsTensorShape(&var_shape) && in CreatePartitionedDummyVarArgs()
3095 !raw_shape.shape.AsTensorShape(&var_shape)) { in CreatePartitionedDummyVarArgs()
3098 TF_RETURN_IF_ERROR(ComputeShardedArgShapes(&var_shape, sharding)); in CreatePartitionedDummyVarArgs()
3114 CreateTpuExecuteDummyArg(var_shape, dtype, host_device, in CreatePartitionedDummyVarArgs()
3217 TensorShape var_shape; in CreateOrGetPerHostVariableCopy() local
[all …]
/external/tensorflow/tensorflow/python/framework/
Dimporter_test.py377 var_shape = resource_variable_ops.variable_shape(var.handle)
387 return_elements=[var.name, var_assign.name, var_shape.name,
/external/tensorflow/tensorflow/python/distribute/
Dsharded_variable.py719 var_shape=v.shape.as_list())
Dsharded_variable_test.py457 full_name='s', full_shape=[2], var_offset=[0], var_shape=[1]))
/external/tensorflow/tensorflow/python/distribute/coordinator/
Dcluster_coordinator_test.py680 var_shape = tuple()
699 var._type_spec = tensor_spec.TensorSpec(var_shape, var_dtype, var_name)