Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 65 for num_inputs (0.22 sec)

  1. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

    // TODO(ycao): Support computation with compile-time constant, which requires
    // non-trivial input mapping as implemented now.
    void GetInputMappingForMlir(int num_inputs, std::vector<int>* input_mapping) {
      input_mapping->resize(num_inputs, 0);
      std::iota(input_mapping->begin(), input_mapping->end(), 0);
    }
    
    static void RegisterDialects(mlir::DialectRegistry& registry) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/linalg_grad.cc

        return errors::InvalidArgument("Equation must contain a single ->");
      }
    
      const absl::string_view input_subs = equation_split[0];
      const absl::string_view output_subs = equation_split[1];
      if (op.num_inputs() == 1) {
        // For the unary einsum z = einsum("{eq_x}->{eq_z}", x), the gradient wrt
        // the input (VJP) is given by the reversed equation:
        //   grad_wrt_x = einsum("{eq_z}->{eq_x}", grad_wrt_z)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 07 23:11:54 UTC 2022
    - 20.4K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api.h

    TF_CAPI_EXPORT extern void TFE_OpAddInputList(TFE_Op* op,
                                                  TFE_TensorHandle** inputs,
                                                  int num_inputs,
                                                  TF_Status* status);
    
    // Fetches the current number of inputs attached to `op`.
    //
    // Does not use the operation's definition to determine how many inputs should
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 22.8K bytes
    - Viewed (0)
  4. tensorflow/c/kernels_experimental.cc

      }
    }
    
    bool TF_IsRefInput(TF_OpKernelContext* ctx, int i, TF_Status* status) {
      auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelContext*>(ctx);
      if (i < 0 || i >= cc_ctx->num_inputs()) {
        TF_SetStatus(status, TF_OUT_OF_RANGE, "input index out of range");
        return false;
      }
      TF_SetStatus(status, TF_OK, "");
      return cc_ctx->input_is_ref(i);
    }
    
    #ifndef IS_MOBILE_PLATFORM
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:12:29 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

          send_recv_nodes.push_back(n);
        }
      }
      EXPECT_EQ(num_send_from_host, 1);
      EXPECT_EQ(num_recv_at_host, 1);
      for (Node *n : send_recv_nodes) {
        Node *input_node;
        TF_CHECK_OK(n->input_node(n->num_inputs() - 1, &input_node));
        EXPECT_EQ(input_node, key_placeholder);
    
        bool has_control_edge_to_sequencer = false;
        for (const Edge *e : n->out_edges()) {
          if (e->IsControlEdge() && e->dst() == sequencer) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/kernels/xla_ops.cc

        : OpKernel(ctx), platform_info_(XlaPlatformInfoFromDevice(ctx->device())) {}
    
    void XlaRunOp::Compute(OpKernelContext* ctx) {
      VLOG(3) << "XlaRunOp " << def().name();
      Tensor key_tensor = ctx->input(ctx->num_inputs() - 1);
    
      bool use_pjrt =
          GetXlaOpsCommonFlags()
              ->tf_xla_use_device_api.IsEnabledInXlaCompileAndRunForDevice(
                  platform_info_.device_type());
    
      if (use_pjrt) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_test.cc

      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_OpAddAttrs(ret, TFE_OpGetAttrs(other));
      int num_inputs = TFE_OpGetFlatInputCount(other, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      for (int input_index = 0; input_index < num_inputs; ++input_index) {
        TFE_TensorHandle* input = TFE_OpGetFlatInput(other, input_index, status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  8. tensorflow/c/c_api.h

    // For inputs that take a list of tensors.
    // inputs must point to TF_Output[num_inputs].
    TF_CAPI_EXPORT extern void TF_AddInputList(TF_OperationDescription* desc,
                                               const TF_Output* inputs,
                                               int num_inputs);
    
    // Call once per control input to `desc`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

        mlir::FunctionType callee_type = callee.getFunctionType();
        SmallVector<Type, 4> expected_callee_input_types;
        auto num_inputs = op.getInputs().size() / 2;
        for (unsigned i = 0; i < num_inputs; ++i) {
          auto input_type =
              mlir::dyn_cast<RankedTensorType>(op.getOperand(i).getType());
          auto scalar = RankedTensorType::get({}, input_type.getElementType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

                                            ? mhlo::Precision::DEFAULT
                                            : mlir::mhlo::Precision::HIGHEST;
      llvm::SmallVector<mlir::Attribute, 2> attr_vec;
      const int num_inputs = 2;
      for (int i = 0; i < num_inputs; i++) {
        attr_vec.push_back(
            mlir::mhlo::PrecisionAttr::get(builder->getContext(), precision));
      }
      return builder->getArrayAttr(attr_vec);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
Back to top