Home
last modified time | relevance | path

Searched refs:IdentityOp (Results 1 – 25 of 37) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/
Didentity_op.cc26 REGISTER_KERNEL_BUILDER(Name("Identity").Device(DEVICE_CPU), IdentityOp);
27 REGISTER_KERNEL_BUILDER(Name("Identity").Device(DEVICE_TPU_SYSTEM), IdentityOp);
31 REGISTER_KERNEL_BUILDER(Name("StopGradient").Device(DEVICE_CPU), IdentityOp);
34 REGISTER_KERNEL_BUILDER(Name("PreventGradient").Device(DEVICE_CPU), IdentityOp);
39 IdentityOp);
41 REGISTER_KERNEL_BUILDER(Name("RefIdentity").Device(DEVICE_CPU), IdentityOp);
46 IdentityOp);
48 IdentityOp);
52 IdentityOp);
55 IdentityOp);
[all …]
Didentity_op.h23 class IdentityOp : public OpKernel {
25 explicit IdentityOp(OpKernelConstruction* context) : OpKernel(context) {} in IdentityOp() function
Ddynamic_partition_op_gpu.cu.cc119 struct IdentityOp { struct
128 : public TransformOutputIterator<int32, int32, IdentityOp> {
139 IdentityOp op, int32 limit) in BoundedReference()
154 BoundedOutputIterator(int32* __restrict__ ptr, IdentityOp op, int32 size) in BoundedOutputIterator()
159 IdentityOp op, int32 size) in BoundedOutputIterator()
404 IdentityOp id_op; in CountAndSortParts()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Didentity_op.cc23 class IdentityOp : public XlaOpKernel { class
25 explicit IdentityOp(OpKernelConstruction* context) : XlaOpKernel(context) {} in IdentityOp() function in tensorflow::__anon3d5a6d050111::IdentityOp
42 TF_DISALLOW_COPY_AND_ASSIGN(IdentityOp);
49 IdentityOp);
54 IdentityOp);
55 REGISTER_XLA_OP(Name("PlaceholderWithDefault"), IdentityOp);
56 REGISTER_XLA_OP(Name("PreventGradient"), IdentityOp);
57 REGISTER_XLA_OP(Name("StopGradient").AllowVariantTypes(), IdentityOp);
58 REGISTER_XLA_OP(Name("Snapshot"), IdentityOp);
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dattribute_utils.h52 class IdentityOp; variable
61 if (!isa<IdentityOp>(op) && !isa<IdentityNOp>(op)) break; in GetValueAsConstant()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/tensorflow/
Dtf_to_quant.cc88 if (auto id1 = dyn_cast_or_null<TF::IdentityOp>(min.getDefiningOp())) { in matchAndRewrite()
93 if (auto id2 = dyn_cast_or_null<TF::IdentityOp>(max.getDefiningOp())) { in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dtensor_device_copy_conversion.cc44 func_op.walk([&](TF::IdentityOp op) { in runOnFunction()
Dannotate_parameter_replication.cc51 if (!isa<TF::IdentityOp, TF::ReadVariableOp>(op)) break; in SkipIdentityAndReadVariable()
Dtpu_identity_pruning.cc81 if (isa<TF::IdentityOp, TF::IdentityNOp>(op)) { in RemoveIdentityFromRegion()
Dtpu_host_computation_expansion.cc55 return llvm::isa<TF::CastOp, TF::IdentityOp>(op); in IsTrivialUnaryOperation()
Dtpu_sharding_identification_pass.cc94 if (llvm::isa<TF::IdentityOp, TF::CastOp, TF::ReadVariableOp>(owner)) { in GetXlaShardingFromArg()
225 if (llvm::isa_and_nonnull<TF::IdentityOp, TF::CastOp>(def)) { in GetXlaShardingFromRetval()
Dtpu_colocate_composite_resource_ops.cc79 llvm::dyn_cast<TF::IdentityOp>(resource_user)) { in GetResourceOpsUsingCompositeArgsInReplicate()
Dreadonly_references_to_resources.cc119 if (!isa<IdentityOp>(user)) { in runOnFunction()
Dtpu_device_propagation.cc104 isa<TF::IdentityOp, TF::IdentityNOp, TF::ShapeOp>(op); in IsSupportedOpToSetDevice()
Dresource_device_inference.cc185 } else if (auto identity = dyn_cast<IdentityOp>(op)) { in ComputeResourceDevicesInComputation()
Dtensor_list_ops_decomposition.cc621 Value buffer = builder.create<TF::IdentityOp>( in HandleTensorListFromTensorOp()
674 auto new_buffer = builder.create<TF::IdentityOp>( in HandleTensorListPopBackOp()
821 if (llvm::isa<TF::IdentityOp, TF::IdentityNOp>(&op)) { in DecomposeTensorListOpsInternal()
Dcollection_ops_util.cc199 } else if (llvm::isa<TF::IdentityOp, TF::IdentityNOp>(use.getOwner())) { in GetElementTypeFromAccess()
/external/tensorflow/tensorflow/c/eager/
Dc_api_test_util.h77 TFE_Op* IdentityOp(TFE_Context* ctx, TFE_TensorHandle* a);
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/analysis/
Dside_effect_analysis.cc189 return llvm::isa<TF::IdentityNOp, TF::IdentityOp>(op) && in OpIsDeclaration()
226 if (isa<IdentityOp>(op)) return true; in OpIsKnownToHaveNoSideEffect()
Dresource_alias_analysis.cc194 } else if (isa<IdentityNOp, IdentityOp>(op)) { in BacktrackValue()
312 } else if (llvm::isa<IdentityNOp, IdentityOp>(op)) { in ResourceAliasAnalysisInfo()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_device_ops.h80 Name("Identity").Device(DEVICE).TypeConstraint("T", TYPES), IdentityOp); \
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/
Dreadonly_references_to_resources.mlir15 // Test case: Basic converting. '_class' attribute is at IdentityOp.
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dlower_static_tensor_list.cc784 struct ConvertIdentity : public OpConversionPattern<TF::IdentityOp> {
788 TF::IdentityOp op, ArrayRef<Value> operands, in matchAndRewrite()
791 rewriter.replaceOpWithNewOp<TF::IdentityOp>(op, input.getType(), operands, in matchAndRewrite()
Dprepare_patterns.td63 // Partially supported in TFLite, treated as passthrough IdentityOp
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dbreakup-islands.cc136 auto identity = builder.create<TF::IdentityOp>(island.getLoc(), in PopulateEmptyIsland()

12