Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ConvertMaxUnpoolingFunc (0.21 sec)

  1. tensorflow/compiler/mlir/lite/utils/perception_ops_utils_test.cc

          createMaxUnpoolingFunc<1, 1>(builder_.get(), input_types, output_types);
      mlir::TFL::ConvertMaxUnpoolingFunc convert(max_unpooling_func, func_attr_);
    
      EXPECT_TRUE(failed(convert.VerifySignature()));
      max_unpooling_func->erase();
    }
    
    TEST_F(PerceptionUtilsTest, RewriteValid) {
      mlir::TFL::ConvertMaxUnpoolingFunc convert(fused_max_unpooling_func_,
                                                 func_attr_);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 21:02:21 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.h

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_attributes.h"
    
    namespace mlir {
    namespace TFL {
    
    // Fuse MaxUnpooling2D ops annotated by tf.function to a TFLite custom op.
    class ConvertMaxUnpoolingFunc {
     public:
      explicit ConvertMaxUnpoolingFunc(func::FuncOp func, mlir::TF::FuncAttr attr)
          : func_(func), attr_(attr) {}
    
      LogicalResult RewriteFunc();
    
      LogicalResult VerifySignature();
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 07 17:42:55 UTC 2022
    - 2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

                 << " does not contain integer values";
        }
        results->push_back(value.getInt());
      }
      return success();
    }
    
    }  // namespace
    
    LogicalResult ConvertMaxUnpoolingFunc::RewriteFunc() {
      func_.eraseBody();
      func_.addEntryBlock();
      func_->setAttr(kTFImplements,
                     StringAttr::get(func_.getContext(), kMaxUnpooling));
    
      OpBuilder builder(func_.getBody());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc

        if (failed(convert_ssd_postprocess.RewriteFunc())) {
          return signalPassFailure();
        }
      } else if (api_name == kCustomMaxUnpooling) {
        ConvertMaxUnpoolingFunc max_unpooling(func, attr);
        if (failed(max_unpooling.VerifySignature())) return;
        if (failed(max_unpooling.RewriteFunc())) {
          return signalPassFailure();
        }
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top