Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for identity_op (0.18 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc

      }
    }
    
    // Checks if an operation can have TPU devices propagated through.
    bool IsSupportedOpToSetDevice(Operation& op) {
      return IsSupportedExecutorOp(op) ||
             isa<TF::IdentityOp, TF::IdentityNOp, TF::ShapeOp>(op);
    }
    
    // Finds nonconflicting TPU device for an operation from its operands. If an
    // operand has no device or a non TPU device, or if there are conflicting
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. callbacks/associations.go

    								}
    							}
    							cacheKey := utils.ToStringKey(relPrimaryValues...)
    							if len(relPrimaryValues) != len(rel.FieldSchema.PrimaryFields) || !identityMap[cacheKey] {
    								if cacheKey != "" { // has primary fields
    									identityMap[cacheKey] = true
    								}
    
    								distinctElems = reflect.Append(distinctElems, rv)
    							}
    						}
    					}
    
    					if elems.Len() > 0 {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/compiler/mlir/tensorflow/tests/executor_tpuv1_island_coarsening/executor_tpuv1_island_coarsening.mlir

        %identity_out, %control_identity = tf_executor.island wraps "tf.Identity"(%replicated_out) {device = ""} : (tensor<4x4xf32>) -> tensor<4x4xf32>
        %partitioned_out:2, %partitioned_control = tf_executor.island wraps "tf.TPUPartitionedOutput"(%identity_out) {partition_dim = 0 : i64} : (tensor<4x4xf32>) -> (tensor<2x4xf32>, tensor<2x4xf32>)
        tf_executor.fetch
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 02 03:15:59 UTC 2022
    - 36.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

        const Block& func_block = func.front();
        // Walk all operations and nested regions to find accessed gradient sources
        // for function arguments.
        func.walk([&](Operation* op) {
          if (llvm::isa<TF::IdentityOp, TF::IdentityNOp>(op)) {
            op->replaceAllUsesWith(op->getOperands());
            return;
          }
          if (auto grad = llvm::dyn_cast<TF::TensorArrayGradV3Op>(op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  9. 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)
  10. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

    // such nodes to carry information.
    void RemovePassthroughOp(Block &block) {
      for (auto &op : llvm::make_early_inc_range(block)) {
        if (isa<TF::IdentityOp, TF::IdentityNOp>(op) || IsCastOfResource(op)) {
          op.replaceAllUsesWith(op.getOperands());
          op.erase();
        }
      }
    }
    
    using LocalVarOp = std::variant<TF::VarHandleOp, TF::MlirLocalVarOp>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top