Home | History | Annotate | Download | only in core

Lines Matching defs:create

36    * Create a constant from a Java object.
39 * org.tensorflow.Tensor#create(Object)}, so only Objects supported by this method must be
43 * Constant.create(scope, 7); // returns a constant scalar tensor 7
48 * @see org.tensorflow.Tensor#create(Object) Tensor.create
50 public static <T> Constant<T> create(Scope scope, Object object, Class<T> type) {
51 try (Tensor<T> value = Tensor.create(object, type)) {
57 * Create a {@link DataType#INT32} constant with data from the given buffer.
69 public static Constant<Integer> create(Scope scope, long[] shape, IntBuffer data) {
70 try (Tensor<Integer> value = Tensor.create(shape, data)) {
76 * Create a {@link DataType#FLOAT} constant with data from the given buffer.
88 public static Constant<Float> create(Scope scope, long[] shape, FloatBuffer data) {
89 try (Tensor<Float> value = Tensor.create(shape, data)) {
95 * Create a {@link DataType#DOUBLE} constant with data from the given buffer.
107 public static Constant<Double> create(Scope scope, long[] shape, DoubleBuffer data) {
108 try (Tensor<Double> value = Tensor.create(shape, data)) {
114 * Create a {@link DataType#INT64} constant with data from the given buffer.
126 public static Constant<Long> create(Scope scope, long[] shape, LongBuffer data) {
127 try (Tensor<Long> value = Tensor.create(shape, data)) {
133 * Create a constant with data from the given buffer.
147 public static <T> Constant<T> create(Scope scope, Class<T> type, long[] shape, ByteBuffer data) {
148 try (Tensor<T> value = Tensor.create(type, shape, data)) {