Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for non_empty_values (0.14 sec)

  1. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      // Remove all empty values.
      SmallVector<Value, 4> non_empty_values;
      for (Value value : this->getValues()) {
        const auto shaped_type = value.getType().cast<ShapedType>();
        if (shaped_type.hasStaticShape() && shaped_type.getNumElements() == 0) {
          continue;
        }
        non_empty_values.push_back(value);
      }
    
      // All are not empty, do nothing.
      if (non_empty_values.size() == getNumOperands()) return nullptr;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top