Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PrintTensor (0.3 sec)

  1. tensorflow/cc/framework/cc_op_gen_util.h

      string ret;
      for (int64_t i = 0; i < num_elts; ++i) {
        if (i > 0) strings::StrAppend(&ret, ", ");
        strings::StrAppend(&ret, array[i]);
      }
      return ret;
    }
    
    string PrintTensor(const TensorProto& tensor_proto);
    
    string PrintTensorProto(const TensorProto& proto);
    
    string PrintAttrValue(StringPiece, const AttrValue& attr_value);
    
    bool IsEmptyList(const AttrValue::ListValue& list);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/cc_op_gen_util.cc

      for (int d = 0; d < shape.dims(); ++d) {
        if (d > 0) strings::StrAppend(&ret, ", ");
        strings::StrAppend(&ret, shape.dim_size(d));
      }
      strings::StrAppend(&ret, "}");
      return ret;
    }
    
    string PrintTensor(const TensorProto& tensor_proto) {
      Tensor t(tensor_proto.dtype());
      CHECK(t.FromProto(tensor_proto));
      const int64_t num_elts = t.NumElements();
      switch (t.dtype()) {
        case DT_FLOAT:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
Back to top