Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 60 for AttrValue (0.24 sec)

  1. tensorflow/c/c_test_util.cc

      TF_DeleteBuffer(buffer);
      TF_DeleteStatus(s);
      return ret;
    }
    
    bool GetAttrValue(TF_Operation* oper, const char* attr_name,
                      tensorflow::AttrValue* attr_value, TF_Status* s) {
      TF_Buffer* buffer = TF_NewBuffer();
      TF_OperationGetAttrValueProto(oper, attr_name, buffer, s);
      bool ret = TF_GetCode(s) == TF_OK;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.h

                                                    TF_Status* status);
    
    // `proto` should point to a sequence of bytes of length `proto_len`
    // representing a binary serialization of an AttrValue protocol
    // buffer.
    TF_CAPI_EXPORT extern void TF_SetAttrValueProto(TF_OperationDescription* desc,
                                                    const char* attr_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/compilability_check_util.cc

        *uncompilable_reason =
            "SymbolicGradient should be handled by IsCompilableCall().";
        return false;
      }
    
      if (node.type_string() == "Const") {
        const AttrValue* attr = node.attrs().Find("dtype");
        if (!op_filter_.allow_string_consts && attr != nullptr &&
            attr->type() == DT_STRING) {
          *uncompilable_reason =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_test.cc

      TFE_DeleteTensorHandle(tensor_handle);
    
      tensorflow::AttrValue i_list_values;
      for (int i = 0; i < 4; ++i) {
        i_list_values.mutable_list()->add_i(1);
      }
      SetOpAttrValueScalar(ctx, op, i_list_values, "ksize", status);
      SetOpAttrValueScalar(ctx, op, i_list_values, "strides", status);
    
      tensorflow::AttrValue padding_value;
      *padding_value.mutable_s() = "VALID";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_experimental.h

                                                    TF_Buffer* buf,
                                                    TF_Status* status);
    
    // Set an op's attribute from a serialized AttrValue protocol buffer.
    //
    // Analogous to TF_SetAttrValueProto for building graph operations.
    TF_CAPI_EXPORT extern void TFE_OpSetAttrValueProto(const TFE_Op* op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_test.cc

      EXPECT_EQ(0, TF_OperationOutputNumConsumers(TF_Output{feed, 0}));
      EXPECT_EQ(0, TF_OperationNumControlInputs(feed));
      EXPECT_EQ(0, TF_OperationNumControlOutputs(feed));
    
      tensorflow::AttrValue attr_value;
      ASSERT_TRUE(GetAttrValue(feed, "dtype", &attr_value, s)) << TF_Message(s);
      EXPECT_EQ(attr_value.type(), tensorflow::DT_INT32);
    
      // Test not found errors in TF_Operation*() query functions.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

            elt_ty = TFRTypes.NONE
            values = []
          array_attr_elts = ['{}:{}'.format(val, elt_ty) for val in values]
          return '[{}]'.format(','.join(array_attr_elts))
      raise NotImplementedError(
          'Proto AttrValue not recognized. type: {}, value: {}'.format(
              attr_type, attr_val))
    
    
    def _collect_derived_attrs_from_proto(op_def):
      derived_attrs = set()
      for arg in op_def.input_arg:
        if arg.type_attr:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/mark_for_compilation_pass.cc

          continue;
        }
    
        if (node->type_string() == "Const") {
          // Skip Const op with type DT_STRING, since XLA autoclustering doesn't
          // support it.
          const AttrValue* attr = node->attrs().Find("dtype");
          if (attr != nullptr && attr->type() == DT_STRING) {
            continue;
          }
        }
    
        if (!allowlist.empty() && !allowlist.contains(node->def().op())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  9. RELEASE.md

    *   New `Variable`s are not added to the same collection several times even if a
        list with duplicates is passed to the constructor.
    *   The Python API will now properly set the `list` member of `AttrValue` in
        constructed `GraphDef` messages for empty lists. The serialization of some
        graphs will change, but the change is both forwards and backwards
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
  10. src/internal/trace/traceviewer/static/trace_viewer_full.html

    for(const attrName in attributes){const attrArgs=attributes[attrName];const attrType=attrArgs.type;const attrValue=attrArgs.value;switch(attrType){case'scalar':{if(attrName in allocatorDump.numerics){this.model_.importWarning({type:'memory_dump_parse_error',message:'Multiple values provided for scalar attribute '+
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (0)
Back to top