MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / ones_like

Function ones_like

tensorflow/python/ops/array_ops.py:1527–1561  ·  view source on GitHub ↗

Creates a tensor with all elements set to 1. Given a single tensor (`tensor`), this operation returns a tensor of the same type and shape as `tensor` with all elements set to 1. Optionally, you can specify a new type (`dtype`) for the returned tensor. For example: ```python tensor = t

(tensor, dtype=None, name=None, optimize=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

strided_sliceFunction · 0.70

Calls 6

shape_internalFunction · 0.85
name_scopeMethod · 0.80
in_graph_modeMethod · 0.80
onesFunction · 0.70
set_shapeMethod · 0.45
get_shapeMethod · 0.45

Tested by

no test coverage detected