Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for identity_op (0.18 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

                         });
    
        // Create IdentityOp or IdentityNOp based on the number of outputs.
        Operation* identity_op;
        if (max_tensor_index == 0) {
          Value output_value = node_output_tensors.front().value;
          identity_op = builder.create<TF::IdentityOp>(
              new_loc, output_value.getType(), output_value);
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_save_function_ops_to_main.cc

      builder.setInsertionPointToStart(&wrapper_island_op.GetBody());
      auto identity_op = builder.create<TF::IdentityOp>(
          name_loc, /*result_types=*/main_file_prefix_arg.getType(),
          /*input=*/main_file_prefix_arg);
    
      builder.create<tf_executor::YieldOp>(name_loc, identity_op.getResult());
    
      return wrapper_island_op;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

          if (cluster_name.has_value()) continue;
          if (auto identity_op = llvm::dyn_cast_or_null<TF::IdentityOp>(op)) {
            auto identity_input = identity_op.getInput();
            auto output = identity_op.getOutput();
            output.replaceAllUsesWith(identity_input);
            identity_op.erase();
          }
        }
      }
    }
    
    void TpuV1BridgeExecutorIslandCoarsening::runOnOperation() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_device_ops.h

    #include "tensorflow/core/kernels/data/prefetch_dataset_op.h"
    #include "tensorflow/core/kernels/fifo_queue.h"
    #include "tensorflow/core/kernels/function_ops.h"
    #include "tensorflow/core/kernels/identity_op.h"
    #include "tensorflow/core/kernels/resource_variable_ops.h"
    #include "tensorflow/core/kernels/shape_ops.h"
    #include "tensorflow/core/kernels/variable_ops.h"
    
    namespace tensorflow {
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 23 19:28:25 UTC 2021
    - 17.1K bytes
    - Viewed (0)
  5. CONTRIBUTING.md

    `--per_file_copt` bazel option. For example, if you want to debug the Identity
    op, which are in files starting with `identity_op`, you can run
    
    ```bash
    bazel build --config=dbg --per_file_copt=+tensorflow/core/kernels/identity_op.*@-g //tensorflow/tools/pip_package:build_pip_package
    ```
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 11:45:51 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/device_compiler_test.cc

      EXPECT_TRUE(compilation_result == nullptr);
      EXPECT_TRUE(xla_executable == nullptr);
    }
    
    TEST_F(OpsTestBase, CompileSingleOpSuccess) {
      TF_EXPECT_OK(NodeDefBuilder("identity_op", "Identity")
                       .Input(FakeInput(DT_FLOAT))
                       .Attr("T", DT_FLOAT)
                       .Finalize(node_def()));
      TF_EXPECT_OK(InitOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/tests/quantize_weights.mlir

    // CHECK: %[[IDENTITY_1:.*]] = "tf.Identity"(%[[W_1]]) : (tensor<2x3x3x1024xi8>) -> tensor<2x3x3x1024xi8>
    // CHECK: %[[DEQUANTIZED_1:.*]] = "tf.PartitionedCall"(%[[IDENTITY_1]]) <{config = "", config_proto = "", executor_type = "", f = @composite_dequantize_uniform__}> : (tensor<2x3x3x1024xi8>) -> tensor<2x3x3x1024xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 42K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

    template <typename T>
    std::tuple<T, llvm::SmallVector<mlir::TF::IdentityOp, 4>> GetSingleUserOfType(
        OpResult result) {
      llvm::SmallVector<mlir::TF::IdentityOp, 4> identity_ops;
    
      do {
        Operation* user = result.hasOneUse() ? *result.getUsers().begin() : nullptr;
        if (auto t = llvm::dyn_cast_or_null<T>(user)) {
          return std::make_tuple(t, identity_ops);
        } else if (auto identity =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc

        auto identity = builder.create<TF::IdentityOp>(island.getLoc(),
                                                       operand.getType(), operand);
        yield.setOperand(0, identity.getOutput());
      } else {
        auto identity_n = builder.create<TF::IdentityNOp>(
            island.getLoc(), yield.getOperandTypes(), yield.getOperands());
        for (auto it : llvm::enumerate(identity_n.getResults()))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/tests/insert_main_function.mlir

    // CHECK-DAG:   %[[IDENTITY_0:.*]] = "tf.Identity"(%[[PARTITIONEDCALL_0]])
    // CHECK-DAG:   %[[IDENTITY_1:.*]] = "tf.Identity"(%[[PARTITIONEDCALL_1]])
    // CHECK:   return %[[IDENTITY_0]], %[[IDENTITY_1]] : tensor<1xf32>, tensor<1xf32>
    // CHECK: }
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 15.4K bytes
    - Viewed (0)
Back to top