Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tensorflow/compiler/mlir/tfr/python/op_reg_gen_test.py

        attrs=['act: {"", "relu"}', 'trans: bool = true'],
        derived_attrs=['T: numbertype'],
        outputs=['o1: T', 'o2: T'])
    def _composite_op(x, y, act, trans):
      return x + act, y + trans
    
    
    class TFRGenTensorTest(test.TestCase):
      """MLIR Generation Tests for MLIR TFR Program."""
    
      def test_op_reg_gen(self):
        cxx_code = gen_register_op(sys.modules[__name__])
        cxx_code_exp = r"""
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/python/tfr_gen_test.py

      return y
    
    
    class TFRGenTestBase(test.TestCase):
    
      def _check_code(self, tfr_code, exp_tfr_code):
        return self.assertTrue(fw.check(str(tfr_code), exp_tfr_code), str(tfr_code))
    
    
    class TFRGenTensorTest(TFRGenTestBase):
      """MLIR Generation Tests for MLIR TFR Program."""
    
      def test_tfr_loc(self):
        mlir_code = tfr_gen(sys.modules[__name__], '_tfr_loc', [test_ops])
        mlir_code_exp = r"""
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 28.8K bytes
    - Viewed (0)
Back to top