Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 85 for identity_op (0.18 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h

    // as GraphDef.
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateMergeInitializerFunctionOpsToMainPass();
    
    // Creates a pass that moves & merges the "@tf_quant__save" function to "@main"
    // function. A new `IdentityOp` will be created. It will have control dependency
    // to the save function and returns the file_prefix argument (typed
    // `tensor<!tf_type.string>`). The file_prefix argument, which can be identified
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

    // of Identity op is only used by TF ops.
    struct RemoveIdentity : public OpRewritePattern<TF::IdentityOp> {
      using OpRewritePattern<TF::IdentityOp>::OpRewritePattern;
    
      LogicalResult matchAndRewrite(TF::IdentityOp identity,
                                    PatternRewriter &rewriter) const override {
        // Replace the op with the input if input and result have the same type.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/tensorflow/tests/fallback_to_flex_ops_default.mlir

      func.return %1 : tensor<*xf32>
    // CHECK: %[[CONST_0:.*]] = "tf.Const"() <{value = dense<1.000000e-03> : tensor<f32>}> {device = ""} : () -> tensor<f32>
    // CHECK: %[[IDENTITY_0:.*]] = "tf.Identity"(%arg0) {device = ""} : (tensor<2xf32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/tfl_while_outline.mlir

      func.return %0#1 : tensor<?xf32>
    }
    
    func.func @whileSinkConstant(%arg0: tensor<1x256xf32>) -> tensor<1x256xf32> attributes {tf.entry_function = {control_outputs = "", inputs = "prefix", outputs = "Identity_1"}} {
        %cst_0 = arith.constant dense<1> : tensor<256x256xi8>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc

        // TODO(b/269195256#comment19) change the warning for Identity op to error
        // when issue with input graph is resolved. Possible issue with python layer
        // inserting Identity op incorrectly.
        if (isa<TF::IdentityOp>(op)) {
          op->emitWarning("TF/XLA TPU bridge input check: found invalid op. ")
              << op->getName() << " can't be both xla and non-xla";
          return true;
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 06:51:01 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_test_util.cc

      TFE_OpAddInput(op, b, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
      TFE_OpSetAttrType(op, "T", TFE_TensorHandleDataType(a));
    
      return op;
    }
    
    TFE_Op* IdentityOp(TFE_Context* ctx, TFE_TensorHandle* a) {
      TF_Status* status = TF_NewStatus();
    
      TFE_Op* op = TFE_NewOp(ctx, "Identity", status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

      for (auto res : compilation_result) {
        // Build identity op with the same location/name as the original compilation
        // result op.
        result_id = builder->create<TF::IdentityOp>(
            res.getLoc(), compile_op->getResult(0).getType(),
            result_id->getResult(0));
        // Assign to same device as result is currently set, unless unset and then
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

              tf_executor.yield %identity : tensor<i32>
            }
            %island_1_result, %island_1_control = tf_executor.island {
              %identity_n:2 = "tf.IdentityN"(%arg1, %island_0_result) : (tensor<i32>, tensor<i32>) -> (tensor<i32>, tensor<i32>)
              tf_executor.yield %identity_n#0
            }
            tf_executor.fetch %island_0_result, %island_1_result : tensor<i32>, tensor<i32>
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/g3doc/_includes/tf_passes.md

          tf_executor.yield %identity : tensor<i32>
        }
        %island_1_result, %island_1_control = tf_executor.island {
          %identity_n:2 = "tf.IdentityN"(%arg1, %island_0_result) : (tensor<i32>, tensor<i32>) -> (tensor<i32>, tensor<i32>)
          tf_executor.yield %identity_n#0
        }
        tf_executor.fetch %island_0_result, %island_1_result : tensor<i32>, tensor<i32>
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

    }
    
    // Trace the graph to find out the actual operation.
    Value getActualValue(Operation *op) {
      if (isa<TF::CastOp>(op)) {
        op = op->getOperand(0).getDefiningOp();
      }
    
      if (isa<TF::IdentityOp>(op)) {
        op = op->getOperand(0).getDefiningOp();
      }
      return op->getResult(0);
    }
    
    Value CreateXlaDotV2OpFromTfEinsumOp(OpBuilder &builder, Location loc,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
Back to top