Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SkipIdentityAndReadVariable (0.17 sec)

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

              AnnotateParameterReplicationPass> {
      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;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top