Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for TF_SetAttrTensorShapeProto (0.1 seconds)

  1. tensorflow/c/c_api.cc

          shapes.emplace_back(absl::Span<const int64_t>(
              reinterpret_cast<const int64_t*>(dims[i]), num_dims[i]));
        }
      }
      desc->node_builder.Attr(attr_name, shapes);
    }
    
    void TF_SetAttrTensorShapeProto(TF_OperationDescription* desc,
                                    const char* attr_name, const void* proto,
                                    size_t proto_len, TF_Status* status) {
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 04 05:55:32 GMT 2025
    - 102.4K bytes
    - Click Count (0)
  2. tensorflow/c/c_api_test.cc

      tensorflow::TensorShapeProto proto;
      tensorflow::PartialTensorShape(pts).AsProto(&proto);
      std::string bytes;
      proto.SerializeToString(&bytes);
    
      auto desc = init("shape");
      TF_SetAttrTensorShapeProto(desc, "v", bytes.data(), bytes.length(), s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      auto oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Jan 07 04:56:09 GMT 2026
    - 97.3K bytes
    - Click Count (0)
Back to Top