Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CanBeRefined (0.23 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.h

    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    #include "mlir/Support/TypeID.h"  // from @llvm-project
    
    namespace mlir {
    namespace TF {
    
    // Returns whether type can be further refined.
    bool CanBeRefined(Type type);
    
    // Returns a new arg type based on the shape and element type. If there are
    // dynamic bounds attribute to the arg, update the bounds based on the shape
    // as well.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

            continue;
          }
          if (mlir::TF::CanBeRefined(use.get().getType())) return true;
        }
      }
      return false;
    }
    
    bool HasDynamicExternalValues(Operation* op) {
      return op
          ->walk([](Operation* walked_op) {
            for (Value v : walked_op->getOperands()) {
              if (mlir::TF::CanBeRefined(v.getType())) {
                return WalkResult::interrupt();
              }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

    // Returns whether type can be further refined.
    bool CanBeRefined(Type type) {
      auto shape_type = mlir::dyn_cast<ShapedType>(type);
      if (!shape_type) return false;
    
      // Returns whether type with subtypes can be further refined.
      auto can_refine_subtypes = [](TF::TensorFlowTypeWithSubtype tws) {
        return tws.GetSubtypes().empty() ||
               llvm::any_of(tws.GetSubtypes(), CanBeRefined);
      };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
Back to top