Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for attr_val (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

          }
          TF_RETURN_IF_ERROR(
              ConvertAttribute(elt_type, remove_ref_type, &attr_val));
          list->add_type(attr_val.type());
        } else if (auto attr = mlir::dyn_cast<mlir::TF::ShapeAttr>(a)) {
          AttrValue attr_val;
          TF_RETURN_IF_ERROR(ConvertAttribute(attr, &attr_val));
          *list->add_shape() = attr_val.shape();
        } else if (auto attr = mlir::dyn_cast<mlir::ArrayAttr>(a)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

        if (attribute_getter_map.find(attr_name.str()) !=
            attribute_getter_map.end()) {
          auto attr_val =
              (attribute_getter_map[attr_name.str()])(rewriter, identifier_to_attr);
          attrs.push_back(rewriter.getNamedAttr(attr_name, attr_val));
        }
      }
    
      auto feature_group_cnt_attr = llvm::StringRef("feature_group_count");
      int feature_group_cnt = 1;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/cc_op_gen_util.cc

    }
    
    string PrintAttrValue(const string& op, const AttrValue& attr_value) {
      switch (attr_value.value_case()) {
        case AttrValue::kS:
          return PrintString(attr_value.s());
        case AttrValue::kI:
          return strings::StrCat(attr_value.i());
        case AttrValue::kF: {
          const float f = attr_value.f();
          if (std::isinf(f)) {
            return strings::StrCat(f < 0.0f ? "-" : "+",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/tests/quantize_weights.mlir

        %cst_0 = "tf.Const"() {value = dense<2.000000e+00> : tensor<2x1024xf32>} : () -> tensor<2x1024xf32>
        %0 = "tf.MatMul"(%arg0, %cst_0) {attr_map = "0:transpose_a,1:transpose_a", device = "", transpose_a = false, transpose_b = false} : (tensor<1x2x2x2xf32>, tensor<2x1024xf32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 42K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantized_function_library_uniform_quantized.mlir

            output_quantization_axis = -1,
            output_quantization_min_val = -2147483648,
            output_quantization_max_val = 2147483647,
            T = "tfdtype$DT_QINT32",
            attr_map = ""
          } : (tensor<*x!tf_type.qint32>, tensor<*x!tf_type.qint32>, tensor<*xf32>, tensor<*xi32>, tensor<*xf32>, tensor<*xi32>, tensor<*xf32>, tensor<*xi32>) -> tensor<*x!tf_type.qint32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 29 01:13:58 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_cluster_util.cc

      for (const auto& name_attr_pair : n.attrs()) {
        const AttrValue& attr_value = name_attr_pair.second;
        if (attr_value.value_case() == AttrValue::kFunc) {
          result.push_back(attr_value.func());
        } else if (attr_value.value_case() == AttrValue::kList) {
          result.insert(result.end(), attr_value.list().func().begin(),
                        attr_value.list().func().end());
        }
      }
    
      return result;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 08:39:39 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/node_matchers.cc

        const std::pair<string, bool>& bool_attr) {
      AttrValue attr_value;
      attr_value.set_b(bool_attr.second);
      return {bool_attr.first, attr_value};
    }
    
    std::pair<string, AttrValue> impl::AttrLiteralHelper(
        const std::pair<string, absl::Span<const int>>& int_list_attr) {
      AttrValue attr_value;
      AttrValue::ListValue* list = attr_value.mutable_list();
      for (int i : int_list_attr.second) {
        list->add_i(i);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 03 16:15:20 UTC 2022
    - 16.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/tests/lift_quantizable_spots_as_functions.mlir

    // CHECK-NEXT: %[[matmul:.*]] = "tf.MatMul"(%arg0, %arg1)
    // CHECK-SAME: attr_map = "0:transpose_a,1:transpose_b"
    // CHECK-NEXT: tf.BiasAdd
    // CHECK-NEXT: tf.Relu6
    // CHECK-NEXT: return
    
    // CHECK-LABEL: private @composite_matmul_with_bias_and_relu_fn_1
    // CHECK-NEXT: tf.MatMul"(%arg0, %arg1)
    // CHECK-SAME: attr_map = "0:transpose_a,1:transpose_b"
    // CHECK-NEXT: tf.BiasAdd
    // CHECK-NEXT: tf.Relu
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/tests/quantize_composite_functions_drq.mlir

        func.return %1: tensor<*xf32>
      }
      func.func private @composite_matmul_fn_1(%arg0: tensor<2x12xf32>, %arg1: tensor<12x2xf32>) -> tensor<*xf32> attributes {tf_quant.composite_function} {
        %0 = "tf.MatMul"(%arg0, %arg1) {attr_map = "0:transpose_a,1:transpose_b", device = "", transpose_a = false, transpose_b = false} : (tensor<2x12xf32>, tensor<12x2xf32>) -> tensor<*xf32>
        return %0 : tensor<*xf32>
      }
    
    // CHECK-LABEL: func @matmul
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/tests/quantize_composite_functions_weight_only.mlir

        func.return %1: tensor<*xf32>
      }
      func.func private @composite_matmul_fn_1(%arg0: tensor<2x12xf32>, %arg1: tensor<12x2xf32>) -> tensor<*xf32> attributes {tf_quant.composite_function} {
        %0 = "tf.MatMul"(%arg0, %arg1) {attr_map = "0:transpose_a,1:transpose_b", device = "", transpose_a = false, transpose_b = false} : (tensor<2x12xf32>, tensor<12x2xf32>) -> tensor<*xf32>
        return %0 : tensor<*xf32>
      }
    }
    
    // PerTensor-LABEL: func @matmul
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 11.3K bytes
    - Viewed (0)
Back to top