Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IsDynamicPadderOp (0.47 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.h

    bool IsOpLegalizedWithMlir(Operation& op);
    
    // Given the type ID, check if it's legalized with MLIR.
    bool IsTypeLegalizedWithMlir(const TypeID& type_id);
    
    // Returns true if the op is considered a dynamic padder op.
    bool IsDynamicPadderOp(const TypeID& type_id);
    
    // Returns True if this op has a Tf2XLA fallback. Currently, this is not the
    // inverse of the !IsOpLegalizedWithMlir, but it should be.
    bool HasTf2XlaFallback(const TypeID& type_id);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 20:53:25 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc

      EXPECT_FALSE(IsTypeLegalizedWithMlir(TypeID::get<TF::AllOp>()));
    }
    
    TEST_F(LegalizationOpConfigTest, ChecksDynamicPadderOps) {
      EXPECT_TRUE(
          IsDynamicPadderOp(TypeID::get<TF::XlaSetDynamicDimensionSizeOp>()));
      EXPECT_FALSE(IsDynamicPadderOp(TypeID::get<TF::ConstOp>()));
    }
    
    // This test is kind of odd. We go through all the Tensorflow types and check
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 03:31:01 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass.cc

      Operation* func_op = getOperation();
    
      func_op->walk([&](Operation* op) {
        auto abstractOp = op->getRegisteredInfo();
        if (!abstractOp) return WalkResult::advance();
    
        if (mlir::mhlo::IsDynamicPadderOp(abstractOp->getTypeID())) {
          has_dynamic_op = true;
          dynamism_op_counter->GetCell(op->getName().getStringRef().str())
              ->IncrementBy(1);
        }
    
        return WalkResult::advance();
      });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 08:55:35 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

      return IsOpTypeAllowedTf2XlaFallback(type_id);
    }
    
    bool IsOpAllowedTf2xlaPreferred(const TypeID& type_id) {
      return IsOpTypeAllowedTf2XlaPreferred(type_id);
    }
    
    bool IsDynamicPadderOp(const TypeID& type_id) {
      return DynamicTensorflowOps().contains(type_id);
    }
    
    }  // namespace mhlo
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top