تينسورفلو :: العمليات :: ملء
#include <array_ops.h>
ينشئ موترًا معبأًا بقيمة عددية.
ملخص
هذه العملية تخلق موترًا من dims
الشكل dims
value
.
على سبيل المثال:
# Output tensor has shape [2, 3]. fill([2, 3], 9) ==> [[9, 9, 9] [9, 9, 9]]
يختلف tf.fill
عن tf.constant
في عدة طرق:
- يدعم
tf.fill
المحتويات العددية فقط ، بينما يدعمtf.constant
قيم Tensor . - ينشئ
tf.fill
Op في الرسم البياني للحساب الذي ينشئ قيمة Tensor الفعلية في وقت التشغيل. هذا على عكسtf.constant
الذي يدمج Tensor بأكمله في الرسم البياني باستخدام عقدةConst
. - نظرًا لأن
tf.fill
يقيّم في وقت تشغيل الرسم البياني ، فإنه يدعم الأشكال الديناميكية بناءً علىtf.constant
وقت التشغيل الأخرى ، على عكسtf.constant
.
الحجج:
- النطاق: كائن النطاق
- يخفت: 1-D. يمثل شكل موتر الإخراج.
- القيمة: 0-D (عددي). القيمة لتعبئة الموتر المرتجع.
(numpy) يكافئ np.full
عائدات:
-
Output
: موتر الإخراج.
البنائين والمدمرين | |
---|---|
Fill (const :: tensorflow::Scope & scope, :: tensorflow::Input dims, :: tensorflow::Input value) |
السمات العامة | |
---|---|
operation | |
output |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
السمات العامة
عملية
Operation operation
انتاج
::tensorflow::Output output
الوظائف العامة
ملء
Fill( const ::tensorflow::Scope & scope, ::tensorflow::Input dims, ::tensorflow::Input value )
العقدة
::tensorflow::Node * node() const
المشغل :: tensorflow :: الإدخال
operator::tensorflow::Input() const
المشغل :: Tensorflow :: Output
operator::tensorflow::Output() const
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]