Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for MlirPassthroughOp (0.27 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/mlir_passthrough_op.pbtxt

          type: DT_FLOAT
        }
      }
      attr {
        key: "shape"
        value {
          shape {
            dim {
              size: 10
            }
          }
        }
      }
    }
    node {
      name: "MlirPassthroughOp"
      op: "MlirPassthroughOp"
      input: "x"
      input: "y"
      attr {
        key: "Tinputs"
        value {
          list {
            type: DT_FLOAT
            type: DT_FLOAT
          }
        }
      }
      attr {
        key: "Toutputs"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/materialize_passthrough_op.mlir

    // RUN: tf-opt -allow-unregistered-dialect -tf-materialize-passthrough-op %s  | FileCheck %s
    
    
    // Check that the MlirPassthroughOp is eliminated and replaced by its attached
    // MLIR module.
    
    // CHECK-LABEL: func @main
    func.func @main(%arg0 : tensor<10xf32>, %arg1 : tensor<10xf32>) -> tensor<10x10xf32> {
    // CHECK-SAME: (%[[ARG0:.*]]: tensor<10xf32>, %[[ARG1:.*]]: tensor<10xf32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 10:34:48 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ops/mlir_passthrough_op.cc

    ==============================================================================*/
    
    #include "tensorflow/core/framework/common_shape_fns.h"
    #include "tensorflow/core/framework/op.h"
    
    namespace tensorflow {
    
    REGISTER_OP("MlirPassthroughOp")
        .Attr("mlir_module: string")
        .Attr("Tinputs : list(type) >= 0")
        .Input("inputs: Tinputs")
        .Attr("Toutputs : list(type) >= 0")
        .Output("outputs: Toutputs")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Sep 14 23:15:53 UTC 2019
    - 1.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/type_attr.mlir

    // CHECK: name: "plain"
    // CHECK: Placeholder
    // CHECK: key: "type"
    // CHECK: type: DT_INT8
    
    func.func @main(%arg0 : tensor<16xf32>) {
      tf_executor.graph {
        %1:2 = tf_executor.island wraps "tf.MlirPassthroughOp"(%arg0) {extra_type_attr = [tensor<5xi32>, tensor<16xf32>], Tinputs = [tensor<16xf32>], Toutputs = [tensor<16xf32>], mlir_module = ""} : (tensor<16xf32>) -> tensor<16xf32>
        tf_executor.fetch
      }
      func.return
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/materialize_mlir_passthrough_op.cc

        : public impl::MaterializePassthroughOpBase<MaterializePassthroughOpPass> {
     public:
      void runOnOperation() override;
    };
    
    void MaterializePassthroughOpPass::runOnOperation() {
      getOperation().walk([](TF::MlirPassthroughOp op) {
        std::string module_string(op.getMlirModule());
        // Parse the module.
        auto nested_module =
            parseSourceString<ModuleOp>(module_string, op.getContext());
        if (!nested_module) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/passes.h

    // Transforms region bases control flow operations in the TensorFlow dialect to
    // their functional counterparts.
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateTFRegionControlFlowToFunctional();
    
    // Materialize the MlirPassthroughOp by replacing it with the MLIR module
    // attached as an attribute.
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateMaterializePassthroughOpPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

          return %2 : tensor<?xi32>
        ```
      }];
    }
    
    def MaterializePassthroughOp : Pass<"tf-materialize-passthrough-op", "mlir::func::FuncOp"> {
      let summary = "Materialize the MlirPassthroughOp by replacing it with the "
        "MLIR module attached as an attribute";
      let constructor = "TF::CreateMaterializePassthroughOpPass()";
      let description = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/g3doc/_includes/tf_passes.md

      return %0 : tensor<i32>
    }
    ```
    ### `-tf-materialize-passthrough-op`
    
    _Materialize the MlirPassthroughOp by replacing it with the MLIR module attached as an attribute_
    
    A pass that replaces MlirPassthrough ops with the code they have in
    their `mlir_module` string attribute.
    ### `-tf-merge-control-flow`
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

      }];
    
      let arguments = (ins);
    
      let results = (outs
        Res<TF_ResourceTensor, "", [TF_VariableAlloc]>:$resource
      );
    }
    
    def TF_MlirPassthroughOp : TF_Op<"MlirPassthroughOp", [Pure]> {
      let summary = [{
    Wraps an arbitrary MLIR computation expressed as a module with a main() function.
      }];
    
      let description = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top