Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsStablehloOp (0.14 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/utils/stablehlo_type_utils_test.cc

      EXPECT_TRUE(IsStablehloOp(*constant_op));
    }
    
    TEST_F(StablehloTypeUtilsTest, IsStablehloOpFailsWithArithOp) {
      const OwningOpRef<mlir::arith::ConstantOp> constant_op =
          builder_.create<mlir::arith::ConstantOp>(builder_.getUnknownLoc(),
                                                   builder_.getI32IntegerAttr(0));
      EXPECT_FALSE(IsStablehloOp(*constant_op));
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 00:32:20 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/utils/stablehlo_type_utils.h

    #include "stablehlo/dialect/StablehloOps.h"  // from @stablehlo
    
    namespace mlir::quant::stablehlo {
    
    // Checks if an op is from StableHLO dialect.
    inline bool IsStablehloOp(Operation* op) {
      return op->getDialect()->getNamespace() ==
             mlir::stablehlo::StablehloDialect::getDialectNamespace();
    }
    
    }  // namespace mlir::quant::stablehlo
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top