Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 384 for cc_ops (0.11 sec)

  1. tensorflow/compiler/mlir/tfr/build_defs.bzl

            name = name + "_ops_cc",
            srcs = [name + "_ops.cc"],
            deps = [
                "//tensorflow/core:framework",
                "//tensorflow/core:lib",
                "//tensorflow/core:protos_all_cc",
            ],
            alwayslink = 1,
        )
    
        tf_custom_op_library(
            name = name + "_ops.so",
            srcs = [name + "_ops.cc"],
        )
    
        tf_gen_op_wrapper_py(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 27 18:00:18 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/cc/const_op_size.h

    #ifndef TENSORFLOW_COMPILER_MLIR_QUANTIZATION_TENSORFLOW_CC_CONST_OP_SIZE_H_
    #define TENSORFLOW_COMPILER_MLIR_QUANTIZATION_TENSORFLOW_CC_CONST_OP_SIZE_H_
    
    #include <cstdint>
    
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace mlir {
    namespace quant {
    
    // Returns the size in bytes of the underlying data of `const_op`. If the
    // underlying type's size cannot be determined, it assumes 4 bytes per element.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 04:37:13 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/ops/uniform_op_quant_spec.cc

    #include "mlir/Support/LLVM.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h"
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace mlir::quant {
    
    std::unique_ptr<OpQuantSpec> GetUniformOpQuantSpec(Operation* op) {
      auto spec = std::make_unique<OpQuantSpec>();
      if (isa<TF::UniformQuantizedConvolutionHybridOp>(op) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 24 07:44:40 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/transform_patterns.td

    include "mlir/IR/PatternBase.td"
    include "mlir/Dialect/Arith/IR/ArithOps.td"
    include "mlir/Dialect/Func/IR/FuncOps.td"
    include "tensorflow/compiler/mlir/lite/ir/tfl_ops.td"
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    
    // Basically x - y => x + y * -1
    def SubToAdd : Pat<(TFL_SubOp $lhs, $rhs, $act),
      (TFL_AddOp $lhs, (TFL_MulOp $rhs,
                      (Arith_ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 21:02:21 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.td

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    include "mlir/IR/OpBase.td"
    include "mlir/IR/PatternBase.td"
    include "tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td"
    
    // Combines the two variadic arguments ($in_tensors and $captured_tensors).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 18:58:35 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_data_optimization.td

    limitations under the License.
    ==============================================================================*/
    
    include "mlir/IR/OpBase.td"
    include "mlir/IR/PatternBase.td"
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    
    // TODO(jpienaar): Move this somewhere general.
    class GetI64ScalarElementsAttr<int value> :
      NativeCodeCall<"DenseElementsAttr::get<int64_t>(RankedTensorType::get({}, $_builder.getIntegerType(64)), " # value # ")">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/reducer/tf_mlir_reduce_patterns.td

    limitations under the License.
    ==============================================================================*/
    include "mlir/IR/OpBase.td"
    include "mlir/IR/PatternBase.td"
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    
    // Note that this may not be a valid transformation for general tensorflow
    // program, but from the perspective of mlir-reduce, it's worth to give it a try
    // because the validity will be checked separately by the tester.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.td

    include "mlir/Dialect/Func/IR/FuncOps.td"
    include "mlir/Dialect/Arith/IR/ArithOps.td"
    include "tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td"
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    
    // Converts tf.Const to arith.constant for statically shaped, non-opaque constants.
    // Needed for QuantizationDriver to recognize constants.
    def ConvertTfConstToArithConst : Pat<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.td

    include "mlir/Dialect/Func/IR/FuncOps.td"
    include "mlir/Dialect/Arith/IR/ArithOps.td"
    include "tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td"
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    
    // Converts reamaining arith.constant ops from quantization passes back to
    // tf.Const ops.
    def ConvertArithConstToTfConst : Pat<
      (Arith_ConstantOp:$res DenseElementsAttr:$value),
      (TF_ConstOp $value),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_tpu_ops.cc

    #include "mlir/IR/DialectImplementation.h"  // from @llvm-project
    #include "mlir/IR/OpDefinition.h"  // from @llvm-project
    #include "mlir/IR/TypeUtilities.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_dialect.h"
    #include "tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.h"
    
    namespace tensorflow {
    namespace tf_mlrt_tpu {
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 22:07:30 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top