Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 93 for attr_val (0.15 sec)

  1. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

        sorted_ops.push_back(current_op);
        unique_ops.insert(current_op);
      }
      return sorted_ops;
    }
    
    // Finds the name of each attribute in `attributes` and set the attr_map
    // attribute which maps an attribute identifier to its attribute name. The
    // identifier is the order of that attribute in `attributes`. This map
    // is then used to set attributes in the quantized functions in the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. tensorflow/c/ops_test.cc

    ==============================================================================*/
    
    #include "tensorflow/c/ops.h"
    
    #include "absl/strings/str_cat.h"
    #include "tensorflow/c/c_api.h"
    #include "tensorflow/core/framework/attr_value.pb.h"
    #include "tensorflow/core/framework/fake_input.h"
    #include "tensorflow/core/framework/op_def.pb.h"
    #include "tensorflow/core/framework/op_def_builder.h"
    #include "tensorflow/core/framework/shape_inference_testutil.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "tensorflow/compiler/mlir/tensorflow/utils/xla_call_module_attrs.h"
    
    namespace mlir::quant {
    
    constexpr char kAttrMapAttribute[] = "attr_map";
    
    // Name of the string attribute attached to `XlaCallModuleOp`, which is the
    // textproto representation of `Method`.
    inline constexpr StringRef kQuantizationMethodAttr = "_quantization_method";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_test.cc

      EXPECT_EQ(0, TF_OperationNumControlOutputs(add));
    
      ASSERT_TRUE(GetAttrValue(add, "T", &attr_value, s)) << TF_Message(s);
      EXPECT_EQ(attr_value.type(), tensorflow::DT_INT32);
      ASSERT_TRUE(GetAttrValue(add, "N", &attr_value, s)) << TF_Message(s);
      EXPECT_EQ(attr_value.i(), 2);
    
      // Placeholder oper now has a consumer.
      ASSERT_EQ(1, TF_OperationOutputNumConsumers(TF_Output{feed, 0}));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

          auto attr_name = signature.getArgAttrOfType<StringAttr>(
              operand.index(), kAttrArgumentNameAttr);
          auto attr_value =
              signature.getArgAttr(operand.index(), kAttrArgumentDefaultAttr);
          arg_attrs->push_back(
              rewriter.getNamedAttr(attr_name.getValue(), attr_value));
          continue;
        }
    
        // The index is valid for the call_op.
        Value input = call_op.getOperand(operand.index());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_quantize_model.cc

    #include "tensorflow/compiler/mlir/quantization/tensorflow/python/type_casters.h"  // IWYU pragma: keep
    #include "tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.pb.h"
    #include "tensorflow/core/framework/attr_value.pb.h"
    #include "tensorflow/core/protobuf/meta_graph.pb.h"
    
    namespace py = pybind11;
    
    namespace {
    
    using ::tensorflow::SignatureDef;
    using ::tensorflow::quantization::ExportedModel;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:33:29 UTC 2024
    - 12K bytes
    - Viewed (0)
  7. tensorflow/cc/tools/freeze_saved_model.cc

    #include "tensorflow/cc/tools/freeze_saved_model.h"
    
    #include <iostream>
    #include <queue>
    
    #include "absl/status/status.h"
    #include "absl/strings/str_cat.h"
    #include "tensorflow/core/framework/attr_value.pb.h"
    #include "tensorflow/core/framework/function.pb.h"
    #include "tensorflow/core/framework/graph.pb.h"
    #include "tensorflow/core/framework/node_def.pb.h"
    #include "tensorflow/core/framework/versions.pb.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

    using ::tsl::StatusOr;
    
    namespace {
    
    bool IsOutputShapesAttribute(const AttrValue& attr_value,
                                 llvm::StringRef attr_name) {
      return attr_name.compare(kOutputShapesAttrName) == 0 &&
             attr_value.value_case() == AttrValue::kList;
    }
    
    bool IsResourceOutputShapesAttribute(const AttrValue& attr_value,
                                         llvm::StringRef attr_name) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/saved_model/core/tf_saved_model_api.cc

    #include "tensorflow/c/experimental/saved_model/core/signature_def_function.h"
    #include "tensorflow/cc/saved_model/bundle_v2.h"
    #include "tensorflow/cc/saved_model/constants.h"
    #include "tensorflow/core/framework/attr_value.pb.h"
    #include "tensorflow/core/framework/function.pb.h"
    #include "tensorflow/core/framework/graph.pb.h"
    #include "tensorflow/core/framework/node_def_util.h"
    #include "tensorflow/core/framework/tensor.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/mark_for_compilation_pass.cc

                                  const char* attr_name) {
      bool out = false;
      bool attr_value;
      if (TryGetNodeAttr(node->attrs(), attr_name, &attr_value)) {
        out |= attr_value;
      }
    
      if (flib_def->GetAttr(*node, attr_name, &attr_value).ok()) {
        out |= attr_value;
      }
      return out;
    }
    
    Status MarkForCompilationPassImpl::BuildInitialClusterSet() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
Back to top