- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 67 for identity_op (0.25 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc
void runOnOperation() override; }; // Returns the first value in the chain of operands, which is not defined by a // tf.IdentityOp or a tf.ReadVariableOp. Value SkipIdentityAndReadVariable(Value v) { while (auto op = v.getDefiningOp()) { if (!isa<TF::IdentityOp, TF::ReadVariableOp>(op)) break; v = op->getOperand(0); } return v; } void AnnotateParameterReplicationPass::runOnOperation() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc
// in the Island body. if (value == island.getControl()) break; value = island.GetYield().getOperand(res_index); } else if (isa<IdentityNOp, IdentityOp>(op)) { value = op->getOperand(res_index); } else if (auto call = dyn_cast<CallOpInterface>(op)) { func::FuncOp func = dyn_cast<func::FuncOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 28.2K bytes - Viewed (0) -
callbacks/preload.go
} if results, ok := joinIdentityMap[utils.ToStringKey(fieldValues...)]; ok { joinKey := utils.ToStringKey(joinFieldValues...) identityMap[joinKey] = append(identityMap[joinKey], results...) } } _, foreignValues = schema.GetIdentityFieldValuesMap(tx.Statement.Context, joinResults, joinRelForeignFields) } else { for _, ref := range rel.References {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:52:33 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc
DenseFPElementsAttr min_value, max_value; if (auto id1 = dyn_cast_or_null<TF::IdentityOp>(min.getDefiningOp())) { id1.replaceAllUsesWith(id1.getInput()); min = tf_op.getMin(); rewriter.eraseOp(id1); } if (auto id2 = dyn_cast_or_null<TF::IdentityOp>(max.getDefiningOp())) { id2.replaceAllUsesWith(id2.getInput()); max = tf_op.getMax();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
callee.getArgument(use.getOperandNumber()), module, infer_from_op); if (type_from_callee.has_value()) return type_from_callee; } else if (llvm::isa<TF::IdentityOp, TF::IdentityNOp>(use.getOwner())) { auto type_from_alias = GetElementTypeFromAccess( use.getOwner()->getResult(use.getOperandNumber()), module, infer_from_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc
val_bcast.getType(), block_arg))) { return failure(); } OpBuilder before_cluster_builder(cluster); IdentityOp assigned_id = before_cluster_builder.create<IdentityOp>( val_bcast.getLoc(), block_arg.getType(), block_arg); assigned_id->setAttr(kICIWeightDistributionMlirBridgeMarker, before_cluster_builder.getBoolAttr(true));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 18:52:07 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/fake_quant_utils.h
AttrType &max_value) const { Value min = tf_op.getMin(), max = tf_op.getMax(); if (auto min_id = min.getDefiningOp<TF::IdentityOp>()) { min = min_id.getInput(); } if (auto max_id = max.getDefiningOp<TF::IdentityOp>()) { max = max_id.getInput(); } if (!matchPattern(min, m_Constant(&min_value))) { return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test.cc
TFE_Op* identityOp = TFE_NewOp(ctx, "IdentityN", status); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); // Try to retrieve lengths before building the attributes (should fail) EXPECT_EQ(-1, TFE_OpGetInputLength(identityOp, "input", status)); CHECK_NE(TF_OK, TF_GetCode(status)) << TF_Message(status); EXPECT_EQ(-1, TFE_OpGetOutputLength(identityOp, "output", status));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tpu_colocate_composite_resource_ops.mlir
n = 2 : i32} { // CHECK: %[[IDENTITY_OUT:.*]] = "tf.Identity"(%[[RI_0]]) // CHECK: %[[RESOURCE_OUT:.*]] = "tf_device.launch"() // CHECK-SAME: TPU_REPLICATED_CORE_0 // CHECK-NEXT: %[[READ_OUT:.*]] = "tf.ReadVariableOp"(%[[IDENTITY_OUT]]) // CHECK-NEXT: tf_device.return %[[READ_OUT]]
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 31 08:59:10 UTC 2023 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc
decomposed_partitioned_call_callees) { for (auto& op : llvm::make_early_inc_range(block->getOperations())) { // TODO(yuanzx): Add a pass to remove identities in device computation. if (llvm::isa<TF::IdentityOp, TF::IdentityNOp, TF::StopGradientOp>(&op)) { op.replaceAllUsesWith(op.getOperands()); op.erase(); } else if (auto list = llvm::dyn_cast<TF::EmptyTensorListOp>(&op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.2K bytes - Viewed (0)