Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for add_shape (0.18 sec)

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

              list->add_s(nested_value.s());
              break;
            case AttrValue::kType:
              list->add_type(nested_value.type());
              break;
            case AttrValue::kShape:
              *list->add_shape() = nested_value.shape();
              break;
            default:
              return errors::Unimplemented("Unhandled nested attribute!");
          }
        } else if (auto attr = mlir::dyn_cast<mlir::ElementsAttr>(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/tf2xla/api/v1/compile_mlir_util_test.cc

                         .Attr("dtype", data_type)
                         .Attr("value", tensor);
      // Create a bad output shape attr.
      AttrValue shape_attr;
      TensorShapeProto* shape_proto = shape_attr.mutable_list()->add_shape();
      shape_proto->add_dim()->set_size(1);
      builder.Attr("_output_shapes", shape_attr);
    
      TF_RETURN_IF_ERROR(builder.Finalize(&node));
    
      return CreateSingleOpGraph(node, {}, {DataType::DT_INT32});
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 19:54:38 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc

                           AttrValueMap* values) {
      AttrValue value;
      auto& shape_list = *value.mutable_list();
      for (const std::optional<llvm::ArrayRef<int64_t>>& shape : shapes) {
        TensorShapeProto& tshape = *shape_list.add_shape();
        if (shape.has_value()) {
          for (int64_t dim : *shape) {
            tshape.add_dim()->set_size(mlir::ShapedType::isDynamic(dim) ? -1 : dim);
          }
        } else {
          tshape.set_unknown_rank(true);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

            handle_dtypes_attr.mutable_list()->add_type(dtype);
    
            SetTensorShapeProto(subtype,
                                handle_shapes_attr.mutable_list()->add_shape());
          }
    
          (*node_def->mutable_attr())["_handle_dtypes"] = handle_dtypes_attr;
          (*node_def->mutable_attr())["_handle_shapes"] = handle_shapes_attr;
        }
      }
    
      TF_RETURN_IF_ERROR(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

            handle_dtypes_attr.mutable_list()->add_type(dtype);
    
            SetTensorShapeProto(subtype,
                                handle_shapes_attr.mutable_list()->add_shape());
          }
    
          (*node_def->mutable_attr())["_handle_dtypes"] = handle_dtypes_attr;
          (*node_def->mutable_attr())["_handle_shapes"] = handle_shapes_attr;
        }
      }
    
      TF_RETURN_IF_ERROR(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  6. tensorflow/cc/gradients/data_flow_grad_test.cc

    }
    
    TEST_F(DataFlowGradTest, DynamicStitchGrad) {
      TensorShape d1_shape({2});
      TensorShape d2_shape({2, 2});
      std::vector<Output> indices = {Const(scope_, 2), Const(scope_, {1, 0})};
      std::vector<Output> data = {
          Placeholder(scope_, DT_FLOAT, Placeholder::Shape(d1_shape)),
          Placeholder(scope_, DT_FLOAT, Placeholder::Shape(d2_shape))};
      auto y = DynamicStitch(scope_, indices, data);
      TensorShape y_shape({3, 2});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 02 18:49:13 UTC 2018
    - 2.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/xml/XmlEscapers.java

            builder.addEscape(c, "\uFFFD");
          }
        }
    
        // Build the content escaper first and then add quote escaping for the
        // general escaper.
        builder.addEscape('&', "&amp;");
        builder.addEscape('<', "&lt;");
        builder.addEscape('>', "&gt;");
        XML_CONTENT_ESCAPER = builder.build();
        builder.addEscape('\'', "&apos;");
        builder.addEscape('"', "&quot;");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/html/HtmlEscapers.java

      private static final Escaper HTML_ESCAPER =
          Escapers.builder()
              .addEscape('"', "&quot;")
              // Note: "&apos;" is not defined in HTML 4.01.
              .addEscape('\'', "&#39;")
              .addEscape('&', "&amp;")
              .addEscape('<', "&lt;")
              .addEscape('>', "&gt;")
              .build();
    
      private HtmlEscapers() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 14 22:08:54 UTC 2021
    - 3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/xml/XmlEscapers.java

            builder.addEscape(c, "\uFFFD");
          }
        }
    
        // Build the content escaper first and then add quote escaping for the
        // general escaper.
        builder.addEscape('&', "&amp;");
        builder.addEscape('<', "&lt;");
        builder.addEscape('>', "&gt;");
        XML_CONTENT_ESCAPER = builder.build();
        builder.addEscape('\'', "&apos;");
        builder.addEscape('"', "&quot;");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/html/HtmlEscapers.java

      private static final Escaper HTML_ESCAPER =
          Escapers.builder()
              .addEscape('"', "&quot;")
              // Note: "&apos;" is not defined in HTML 4.01.
              .addEscape('\'', "&#39;")
              .addEscape('&', "&amp;")
              .addEscape('<', "&lt;")
              .addEscape('>', "&gt;")
              .build();
    
      private HtmlEscapers() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 14 22:08:54 UTC 2021
    - 3K bytes
    - Viewed (0)
Back to top