Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsResourceType (0.69 sec)

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

      }
    
      for (auto& arg : op->getOpOperands()) {
        Value v = arg.get();
        if (!IsResourceType(arg.get().getType())) continue;
        if (alias_analysis.IsUnknownResource(v)) continue;
        for (auto id : alias_analysis.GetResourceUniqueIds(v)) {
          (void)id;
        }
      }
    
      for (auto& arg : op->getOpOperands()) {
        if (!IsResourceType(arg.get().getType())) {
          continue;
        }
        auto lattice =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      // Convert a list of mlir::Value's into a list of mlir::Type's
      std::vector<Type> types;
      types.reserve(input.size());
      for (auto val : input) types.push_back(val.getType());
      return types;
    }
    
    bool IsResourceType(Type val_type) {
      if (auto tensor_type = mlir::dyn_cast<mlir::TensorType>(val_type)) {
        if (mlir::isa<TF::ResourceType>(tensor_type.getElementType())) {
          return true;
        }
      }
      return false;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top