Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for tfr_gen_from_module (0.34 sec)

  1. tensorflow/compiler/mlir/tfr/define_op_template.py

    from absl import app
    from tensorflow.compiler.mlir.tfr.python.composite import Composite
    from tensorflow.compiler.mlir.tfr.python.op_reg_gen import gen_register_op
    from tensorflow.compiler.mlir.tfr.python.tfr_gen import tfr_gen_from_module
    from tensorflow.python.platform import flags
    
    FLAGS = flags.FLAGS
    
    flags.DEFINE_string(
        'output', None,
        'Path to write the genereated register op file and MLIR file.')
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/examples/customization/ops_defs.py

    import sys
    from absl import app
    
    from tensorflow.compiler.mlir.tfr.python import composite
    from tensorflow.compiler.mlir.tfr.python.op_reg_gen import gen_register_op
    from tensorflow.compiler.mlir.tfr.python.tfr_gen import tfr_gen_from_module
    from tensorflow.python.framework import dtypes
    from tensorflow.python.ops import gen_array_ops as array_ops
    from tensorflow.python.platform import flags
    
    
    Composite = composite.Composite
    FLAGS = flags.FLAGS
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/examples/pad/ops_defs.py

    import tensorflow as tf
    
    from tensorflow.compiler.mlir.tfr.python import composite
    from tensorflow.compiler.mlir.tfr.python.op_reg_gen import gen_register_op
    from tensorflow.compiler.mlir.tfr.python.tfr_gen import tfr_gen_from_module
    from tensorflow.python.ops import gen_array_ops
    from tensorflow.python.platform import flags
    
    Composite = composite.Composite
    FLAGS = flags.FLAGS
    
    flags.DEFINE_string(
        'output', None,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 01 05:00:29 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/examples/mnist/ops_defs.py

    import tensorflow as tf
    
    from tensorflow.compiler.mlir.tfr.python import composite
    from tensorflow.compiler.mlir.tfr.python.op_reg_gen import gen_register_op
    from tensorflow.compiler.mlir.tfr.python.tfr_gen import tfr_gen_from_module
    from tensorflow.python.framework import ops
    from tensorflow.python.ops import gen_math_ops
    from tensorflow.python.ops import gen_nn_ops
    from tensorflow.python.ops import math_ops
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 31 20:23:51 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/python/tfr_gen_test.py

    import sys
    
    from tensorflow.compiler.mlir.python.mlir_wrapper import filecheck_wrapper as fw
    from tensorflow.compiler.mlir.tfr.python import composite
    from tensorflow.compiler.mlir.tfr.python.tfr_gen import tfr_gen_from_module as tfr_gen
    from tensorflow.compiler.mlir.tfr.resources import gen_test_ops as test_ops
    from tensorflow.python.framework import dtypes
    from tensorflow.python.ops import gen_array_ops as array_ops
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 28.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

      # functions called.
      py_funcs = sorted(py_funcs, key=lambda x: x.__code__.co_firstlineno)
      mlir_funcs = [tfr_gen(func, op_defs) for func in py_funcs]
    
      return mlir_funcs
    
    
    def tfr_gen_from_module(source, method_prefix=None, op_libraries=None,
                            op_defs=OpDefCache()):
      """Parse the input source module and emit the TFR and external functions."""
      mlir_funcs = tfr_funcs_gen_from_module(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
Back to top