Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- TensorFlow\OperationDescription::setAttrFloat method --FILE-- <?php $desc = new T..
Decoded Output download
--TEST--
TensorFlow\OperationDescription::setAttrFloat method
--FILE--
<?php
$desc = new TensorFlow\OperationDescription(new TensorFlow\Graph(), "Const", "scalar");
$desc->setAttrFloat("pass", 1.0);
$desc->setAttrFloat("pass", 2.1);
$desc->setAttrFloat("pass", 3.3);
$desc->setAttrFloat("pass", "3.3"); // safe
$desc->setAttrFloat("fail", "string");
?>
--EXPECTF--
Warning: TensorFlow\OperationDescription::setAttrFloat() expects parameter 2 to be float, string given in %s on line %d
Did this file decode correctly?
Original Code
--TEST--
TensorFlow\OperationDescription::setAttrFloat method
--FILE--
<?php
$desc = new TensorFlow\OperationDescription(new TensorFlow\Graph(), "Const", "scalar");
$desc->setAttrFloat("pass", 1.0);
$desc->setAttrFloat("pass", 2.1);
$desc->setAttrFloat("pass", 3.3);
$desc->setAttrFloat("pass", "3.3"); // safe
$desc->setAttrFloat("fail", "string");
?>
--EXPECTF--
Warning: TensorFlow\OperationDescription::setAttrFloat() expects parameter 2 to be float, string given in %s on line %d
Function Calls
None |
Stats
MD5 | 82be3cdc507eb57d4c95fcb06be729f5 |
Eval Count | 0 |
Decode Time | 93 ms |