Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TFDataFormatIsNDHWC (0.28 sec)

  1. tensorflow/compiler/mlir/lite/utils/validators.h

    }
    
    // Returns true if the given TensorFlow op does not have a `data_format`
    // attribute (then default to "NDHWC"), or its `data_format` attribute is
    // "NDHWC".
    inline bool TFDataFormatIsNDHWC(Operation *op) {
      auto attr = op->getAttrOfType<StringAttr>("data_format");
      return !attr || attr.getValue() == "NDHWC";
    }
    
    // Returns true if the given `op`
    //   * has an attribute with the given `name`,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

                                            input, num, axis);
      return success();
    }
    
    LogicalResult ConvertTFConv3DOp::matchAndRewrite(
        Operation* op, PatternRewriter& rewriter) const {
      if (!TFDataFormatIsNDHWC(op)) return failure();
    
      auto tf_op = cast<TF::Conv3DOp>(op);
    
      IntegerAttr stride_depth, stride_height, stride_width;
      if (!TFIntListIs1XYZ1(op, "strides", &stride_depth, &stride_height,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

          if (!exponential_avg_factor)
            exponential_avg_factor =
                rewriter.getFloatAttr(rewriter.getF32Type(), 1.0f);
        }
        if (!TFDataFormatIsNHWC(fused_batch_norm_op) &&
            !TFDataFormatIsNDHWC(fused_batch_norm_op))
          return failure();
    
        if (!(((*root.getODSResults(1).begin()).use_empty()))) {
          return rewriter.notifyMatchFailure(
              fused_batch_norm_op, [&](::mlir::Diagnostic &diag) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
Back to top