Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsCastOfResource (0.11 sec)

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

    namespace mlir {
    namespace {
    
    bool IsResource(Value value) {
      return mlir::isa<TF::ResourceType>(getElementTypeOrSelf(value.getType()));
    }
    
    // Checks if a cast op is casting a resource -> resource.
    bool IsCastOfResource(Operation &op) {
      auto cast = dyn_cast<TF::CastOp>(op);
      if (!cast) return false;
      return IsResource(cast.getX());
    }
    
    // Removes passthrough ops in the block. The device computation does not need
    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