Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 85 for identity_op (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

      while (auto result = mlir::dyn_cast<OpResult>(v)) {
        if (!(allow_other_use || v.hasOneUse())) break;
        auto op = result.getDefiningOp();
        if (!llvm::isa<TF::IdentityOp, TF::IdentityNOp>(op)) {
          break;
        }
        v = op->getOperand(result.getResultNumber());
        if (skipped) skipped->insert(op);
      }
      return v;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

        TypeID::get<TF::_FusedConv2DOp>(),
        TypeID::get<TF::GatherNdOp>(),
        TypeID::get<TF::GatherV2Op>(),
        TypeID::get<TF::GreaterEqualOp>(),
        TypeID::get<TF::IdentityOp>(),
        TypeID::get<TF::IdentityNOp>(),
        TypeID::get<TF::InplaceUpdateOp>(),
        TypeID::get<TF::InvertPermutationOp>(),
        TypeID::get<TF::IRFFTOp>(),
        TypeID::get<TF::L2LossOp>(),
        TypeID::get<TF::LegacyCallOp>(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  6. platforms/software/publish/src/main/java/org/gradle/api/publish/internal/metadata/ModuleMetadataSpecBuilder.java

            return ownerData != null
                ? identityFor(ownerData, relativeUrlTo(componentData.coordinates, ownerData.coordinates))
                : identityFor(componentData, null);
        }
    
        private ModuleMetadataSpec.Identity identityFor(ComponentData componentData, String relativeUrl) {
            return new ModuleMetadataSpec.Identity(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:07:04 UTC 2024
    - 23K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/integration/node_expansion_pass.cc

      // isn't a composite op. The following ops are explicitly skipped here because
      // their "no-op" expansion is known to cause problems in some cases.
      static const char* kOpsToSkip[] = {
          "IdentityOp",
          "NoOp",              // b/174596063
          "OptionalHasValue",  // b/173136483
          "OptionalGetValue",  // b/173136483
          "VarHandleOp",       // b/176819198
      };
      for (const char* skip : kOpsToSkip) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Feb 25 16:22:36 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/multi_arguments_results_v1.py

    # CHECK: return %[[IDENTITY]]#1, %[[IDENTITY]]#0
    
    
    def Test():
    
      x = tf.constant(1.0, shape=(5, 3))
      y = tf.constant(1.0, shape=(3, 5))
    
      s = tf.matmul(x, y)
      t = tf.matmul(y, x)
      [t, s] = array_ops.identity_n([t, s])
    
      tensor_info_x = tf.compat.v1.saved_model.utils.build_tensor_info(x)
      tensor_info_y = tf.compat.v1.saved_model.utils.build_tensor_info(y)
      tensor_info_s = tf.compat.v1.saved_model.utils.build_tensor_info(s)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc

      return value.getDefiningOp();
    }
    
    // TODO(b/158596585): Replace this with a cost model analysis.
    bool IsTrivialUnaryOperation(Operation* op) {
      return llvm::isa<TF::CastOp, TF::IdentityOp>(op);
    }
    
    // Adds outside compilation attributes to unary ops such as Identity/Cast ops
    // at the head of TPU computation that is used only by other outside compiled
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/readonly_references_to_resources.mlir

      %val1 = "tf.Identity"(%val0) : (tensor<96x!tf_type.f32ref>) -> tensor<96xf32>
      func.return
    }
    
    // -----
    
    // Test case: Basic converting. '_class' attribute is at IdentityOp.
    
    func.func @f() {
      // CHECK: "tf.VarHandleOp"
      // CHECK: "tf.ReadVariableOp"
      %val0 = "tf.VariableV2"() {container = "", device = "", shape = #tf_type.shape<96>, shared_name = ""} : () -> tensor<96x!tf_type.f32ref>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 4.1K bytes
    - Viewed (0)
Back to top