Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 217 for cc_ops (0.2 sec)

  1. tensorflow/compiler/mlir/lite/transforms/legalize_variables.td

    // TFLite variables legalization patterns
    include "mlir/IR/PatternBase.td"
    include "tensorflow/compiler/mlir/lite/ir/tfl_ops.td"
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    
    def HasSupportedElementType :
      Constraint<CPred<"HasSupportedElementType($0.getDefiningOp())">>;
    
    def IsSupportedElementType :
      Constraint<CPred<"IsSupportedElementType($0.getType().cast<ShapedType>())">>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 16 23:20:46 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.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)
  3. tensorflow/cc/saved_model/testdata/generate_saved_models.py

    from tensorflow.python.framework import dtypes
    from tensorflow.python.framework import ops
    from tensorflow.python.framework import tensor_spec
    from tensorflow.python.module import module
    from tensorflow.python.ops import io_ops
    from tensorflow.python.ops import lookup_ops
    from tensorflow.python.ops import variables
    from tensorflow.python.platform import test
    from tensorflow.python.saved_model import save_options
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 18:06:18 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top