Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 42 for input_idx (0.14 sec)

  1. tensorflow/c/eager/gradients.cc

                               GradientFunction* gradient_function,
                               const string& op_name) {
      std::vector<int64_t> input_ids(inputs.size());
      std::vector<tensorflow::DataType> input_dtypes(inputs.size());
      for (int i = 0; i < inputs.size(); i++) {
        input_ids[i] = ToId(inputs[i]);
        input_dtypes[i] = inputs[i]->DataType();
      }
      std::vector<TapeTensor> tape_tensors;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_experimental.cc

    const char* TF_GetNumberAttrForOpListInput(const char* op_name, int input_index,
                                               TF_Status* status) {
      const tensorflow::OpDef* op_def = nullptr;
      status->status =
          tensorflow::OpRegistry::Global()->LookUpOpDef(op_name, &op_def);
      if (!status->status.ok()) return nullptr;
    
      if (input_index >= op_def->input_arg_size() || input_index < 0) {
        status->status = tensorflow::errors::InvalidArgument(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

        return false;
      }
      if (filter_index == input_indices[0]) {
        input_index = input_indices[1];
      } else if (filter_index == input_indices[1]) {
        input_index = input_indices[0];
      } else {
        return false;
      }
    
      const QuantState& input_state = GetOperandQuantState(op, input_index);
      const QuantState& filter_state = GetOperandQuantState(op, filter_index);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass_test.cc

          ops::Placeholder(root.WithOpName("input_float"), DT_FLOAT);
      Output input_i64 = ops::Placeholder(root.WithOpName("input_i64"), DT_INT64);
    
      Output begin_begin =
          ops::Placeholder(root.WithOpName("begin_begin"), DT_INT32);
      Output begin_size = ops::Const(root.WithOpName("begin_size"), {-1});
      Output begin =
          ops::Slice(root.WithOpName("begin"), input_i64, begin_begin, begin_size);
    
      Output size =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.td

    // point is dynaically calculated so not a constant.
    def ConvertTFConv2DToXLAConvOpDynamicRange : Pat<
      (TF_Conv2DOp:$conv
        (TF_SubOp:$input (TF_CastOp $input_i8, $truncate0), $input_zp),
        (TF_CastOp (TF_IdentityOp $filter), $truncate1),
        $strides, $use_cudnn, $padding, $explicit_padding,
        IsDataFormatNHWC:$data_format, $dilations),
      (CreateXLAConvOpFromTFConv2DOp
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/gradients/grad_test_helper.cc

        if (!outputs[i]) continue;
    
        AbstractTensorHandlePtr numerical_grad;
        {
          AbstractTensorHandle* numerical_grad_raw;
          s = CalcNumericalGrad(ctx, model, inputs,
                                /*input_index=*/i, use_function,
                                &numerical_grad_raw);
          ASSERT_EQ(errors::OK, s.code()) << s.message();
          numerical_grad.reset(numerical_grad_raw);
        }
    
        TF_Tensor* numerical_tensor;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

      // the input.
      for (const auto& sharding_attr_and_index : llvm::enumerate(sharding_attrs)) {
        const auto& sharding_attr = sharding_attr_and_index.value();
        const auto input_index = sharding_attr_and_index.index();
        const auto& input_value = cluster_func_inputs[input_index];
    
        xla::OpSharding sharding;
        if (DecodeShardingAttribute(
                mlir::cast<mlir::StringAttr>(sharding_attr).getValue().str(),
                sharding)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantized_function_library.mlir

        func.return %add : tensor<*xf32>
      }
    
      func.func private @internal_dequantize_i8_fn(%input : tensor<*xi8>, %scale : tensor<*xf32>, %zp : tensor<*xi32>) -> tensor<*xf32> {
        %input_i32 = "tf.Cast"(%input) : (tensor<*xi8>) -> tensor<*xi32>
        %output = "tf.Sub"(%input_i32, %zp) : (tensor<*xi32>, tensor<*xi32>) -> tensor<*xi32>
        %cast = "tf.Cast"(%output) : (tensor<*xi32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 08 01:16:10 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

                                      previous_unknown_resource_access)) {
            VLOG(2) << "  removing op from merge candidates";
            int input_index = info_it->getSecond().execute_input_index;
            var_access_info.new_operand_values[input_index] =
                execute.getOperand(input_index);
            var_access_info.per_resource_info.erase(info_it);
          }
        }
        previous_unknown_resource_access |=
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_experimental.h

    // For argument number input_index, fetch the corresponding number_attr that
    // needs to be updated with the argument length of the input list.
    // Returns nullptr if there is any problem like op_name is not found, or the
    // argument does not support this attribute type.
    TF_CAPI_EXPORT extern const char* TF_GetNumberAttrForOpListInput(
        const char* op_name, int input_index, TF_Status* status);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 15.1K bytes
    - Viewed (0)
Back to top